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):