From cb1028f8547be6c6bcd858c6255002edb6e3258b Mon Sep 17 00:00:00 2001 From: James Ball Date: Tue, 5 Nov 2024 10:03:08 +0100 Subject: [PATCH] Fix missing e2dx attribute check --- ImageD11/sinograms/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImageD11/sinograms/dataset.py b/ImageD11/sinograms/dataset.py index 020dea3e..c3f7c408 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 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: