From 94d6ffbd8ee8ee3cb7ad97f5fef1c5139dd1b336 Mon Sep 17 00:00:00 2001 From: gfreychet Date: Fri, 26 Jan 2024 10:47:55 +0100 Subject: [PATCH] Back to checing an empty list for ai (list have no size) --- smi_analysis/SMI_beamline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smi_analysis/SMI_beamline.py b/smi_analysis/SMI_beamline.py index 9c94a57..b6e2c1e 100644 --- a/smi_analysis/SMI_beamline.py +++ b/smi_analysis/SMI_beamline.py @@ -224,7 +224,7 @@ def calculate_integrator_gi(self, det_rots): def stitching_data(self, flag_scale=True, interp_factor=1): self.img_st, self.qp, self.qz = [], [], [] - if not(self.ai.size): + if self.ai == []: if len(self.det_angles) != len(self.imgs): if self.detector != 'Pilatus900kw': if len(self.det_angles) !=0 and len(self.det_angles) > len(self.imgs):