diff --git a/py4DSTEM/braggvectors/diskdetection_aiml.py b/py4DSTEM/braggvectors/diskdetection_aiml.py index 2284202e4..099105538 100644 --- a/py4DSTEM/braggvectors/diskdetection_aiml.py +++ b/py4DSTEM/braggvectors/diskdetection_aiml.py @@ -98,7 +98,7 @@ def find_Bragg_disks_aiml_single_DP( Returns: (PointList): the Bragg peak positions and correlation intensities - """ + """ if find_spec("crystal4D") is None: raise ImportError("Import Error: Please install crystal4D before proceeding") try: @@ -251,7 +251,6 @@ def find_Bragg_disks_aiml_selected( """ if find_spec("crystal4D") is None: - raise ImportError("Import Error: Please install crystal4D before proceeding") assert len(Rx) == len(Ry) diff --git a/py4DSTEM/process/calibration/qpixelsize.py b/py4DSTEM/process/calibration/qpixelsize.py index 9d0c5eded..b98cd8716 100644 --- a/py4DSTEM/process/calibration/qpixelsize.py +++ b/py4DSTEM/process/calibration/qpixelsize.py @@ -4,7 +4,6 @@ from scipy.optimize import leastsq - def get_Q_pixel_size(q_meas, q_known, units="A"): """ Computes the size of the Q-space pixels. diff --git a/py4DSTEM/process/utils/utils.py b/py4DSTEM/process/utils/utils.py index f77578f5a..3da90f48a 100644 --- a/py4DSTEM/process/utils/utils.py +++ b/py4DSTEM/process/utils/utils.py @@ -11,7 +11,9 @@ import matplotlib.font_manager as fm from emdfile import tqdmnd -from py4DSTEM.preprocess.utils import make_Fourier_coords2D # TODO this is defined later +from py4DSTEM.preprocess.utils import ( + make_Fourier_coords2D, +) # TODO this is defined later try: from IPython.display import clear_output