Skip to content

Commit

Permalink
Changing to a Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rakowski committed Nov 10, 2023
1 parent db59746 commit be609b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py4DSTEM/io/legacy/read_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def get_N_dataobjects(filepath, topgroup="4DSTEM_experiment"):
N_pla = len(f[topgroup]["data/pointlistarrays"].keys())
try:
N_coords = len(f[topgroup]["data/coordinates"].keys())
# TODO work out what exception will be raised
except (ValueError, AttributeError, Exception):
# TODO work out what exception will be raised ValueError, AttributeError
except Exception:
N_coords = 0
N_do = N_dc + N_cdc + N_ds + N_rs + N_pl + N_pla + N_coords
return N_dc, N_cdc, N_ds, N_rs, N_pl, N_pla, N_coords, N_do

0 comments on commit be609b3

Please sign in to comment.