diff --git a/ImageD11/sinograms/dataset.py b/ImageD11/sinograms/dataset.py index c3f7c408..9844fc4d 100644 --- a/ImageD11/sinograms/dataset.py +++ b/ImageD11/sinograms/dataset.py @@ -672,7 +672,7 @@ def get_colfile_from_peaks_dict(self, peaks_dict=None): cf = colfile_from_dict(peaks_dict) # Define spatial correction - if hasattr(self.e2dxfile) and (self.e2dxfile is not None): + if hasattr(self, "e2dxfile") and (self.e2dxfile is not None): cf = correct_cf_with_dxdyfiles(cf, self.e2dxfile, self.e2dyfile) else: if self.splinefile is not None: