Commit 34591f34 authored by bliss administrator's avatar bliss administrator
Browse files

Add shutter type for pco in tomo metadata

parent b234d855
......@@ -576,7 +576,6 @@ class TomoCcd(TomoParameters):
self.det_proxy.saving_directory = '/'.join(dirsplit[:dirsplit.index('inhouse')+1])
if 'visitor' in self.det_proxy.saving_directory:
self.det_proxy.saving_directory = '/'.join(dirsplit[:dirsplit.index('visitor')+1])
print(self.det_proxy.saving_directory)
# save the detector state
self.save_ccd_config(config_name)
......@@ -821,6 +820,17 @@ class TomoCcd(TomoParameters):
image_par["roi"] = self.detector.image.roi
return image_par
def get_shutter_type(self):
if 'pco' in self.detector.camera_type.lower():
if self.detector.camera.rolling_shutter == 1:
return "global shutter"
if self.detector.camera.rolling_shutter == 2:
return "rolling shutter"
else:
return None
def field_of_view(self, optic):
"""
......
......@@ -109,6 +109,8 @@ class TomoMetaData:
# read image parameters
image_params = self.tomo.tomo_ccd.get_image_parameters()
scan_info["detector"] = image_params
shutter_type = self.tomo.tomo_ccd.get_shutter_type()
scan_info["detector"].update({"shutter_type":shutter_type})
# optic parameters
optic = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment