Skip to content

Commit

Permalink
changing to assertion error
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rakowski committed Nov 10, 2023
1 parent 2212461 commit 51f078f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py4DSTEM/datacube/virtualimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def position_detector(
image = self.tree(k)
break
# TODO check what error is produced when passing nonexistant key to tree
except (KeyError, AttributeError):
except AssertionError:
pass
if image is None:
image = self[0, 0]
Expand Down

0 comments on commit 51f078f

Please sign in to comment.