Skip to content

Commit

Permalink
removing assers
Browse files Browse the repository at this point in the history
  • Loading branch information
cophus committed Oct 23, 2024
1 parent b922504 commit c2eeb59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py4DSTEM/datacube/virtualimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def get_calibrated_detector_geometry(
), "No calibration found - set a calibration or set `centered` and `calibrated` to False"
return g
else:
assert isinstance(calibration, Calibration)
# assert isinstance(calibration, Calibration)
cal = calibration

# Get calibration metadata
Expand Down
2 changes: 1 addition & 1 deletion py4DSTEM/visualize/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def show(
):
cal = ar.calibration
er = ".calibration attribute must be a Calibration instance"
assert isinstance(cal, Calibration), er
# assert isinstance(cal, Calibration), er
if isinstance(ar, DiffractionSlice):
scalebar = {
"Nx": ar.data.shape[0],
Expand Down

0 comments on commit c2eeb59

Please sign in to comment.