Skip to content

Commit

Permalink
changing from ValueError to Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rakowski committed Nov 10, 2023
1 parent be609b3 commit 08957ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py4DSTEM/process/classification/featurization.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@ def get_class_DPs(self, datacube, method, thresh):
datacube.data.shape[2],
datacube.data.shape[3],
)
except ValueError:
# TODO Work out if its a ValueError
except Exception:
raise ValueError(
"Datacube must have same R_Nx and R_Ny dimensions as Featurization instance."
)
Expand Down

0 comments on commit 08957ff

Please sign in to comment.