Skip to content

Commit

Permalink
Back to checing an empty list for ai (list have no size)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfreychet committed Jan 26, 2024
1 parent a48e7e5 commit 94d6ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smi_analysis/SMI_beamline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 94d6ffb

Please sign in to comment.