Skip to content

Commit

Permalink
Adding Eiger 500k for image opening
Browse files Browse the repository at this point in the history
  • Loading branch information
gfreychet committed Nov 4, 2024
1 parent ddad2b2 commit 3905336
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions smi_analysis/SMI_beamline.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def open_data(self, path, lst_img, optional_mask=None):
elif self.detector == 'Eiger1M_xeuss':
self.imgs.append(fabio.open(os.path.join(path, img)).data)
self.masks.append(self.det.calc_mask(img=self.imgs[0]))
elif self.detector == 'Eiger500k_xeuss':
self.imgs.append(fabio.open(os.path.join(path, img)).data)
self.masks.append(self.det.calc_mask(img=self.imgs[0]))

def open_data_db(self, lst_img, optional_mask=None):
"""
Expand Down Expand Up @@ -158,6 +161,9 @@ def open_data_db(self, lst_img, optional_mask=None):
self.imgs.append(img)
elif self.detector == 'Eiger1M_xeuss':
self.imgs.append(img)
elif self.detector == 'Eiger500k_xeuss':
self.imgs.append(fabio.open(os.path.join(path, img)).data)
self.masks.append(self.det.calc_mask(img=self.imgs[0]))

def calculate_integrator_trans(self, det_rots):
self.ai = []
Expand Down

0 comments on commit 3905336

Please sign in to comment.