Skip to content

Commit

Permalink
Exception->warning to allow deleting element data
Browse files Browse the repository at this point in the history
  • Loading branch information
aplowman committed Jan 18, 2021
1 parent c2a195b commit 810229e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matflow/models/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ def get_element_data(self, idx):
out = []
for i in idx:
if i > (num_dat - 1):
raise ValueError(f'Element data has {num_dat} member(s), but idx={i} '
f'requested.')
warn(f'Element data has {num_dat} member(s), but idx={i} '
f'requested. Perhaps some element data has been deleted.')
dat_path = path + f'/{idx_map[i]}'
out.append(hickle.load(handle, path=dat_path))

Expand Down

0 comments on commit 810229e

Please sign in to comment.