correct syntax error

This commit is contained in:
gac-x07mb
2024-08-23 14:00:56 +02:00
parent 9abbcd4d48
commit 0a62c9aac6
2 changed files with 24 additions and 15 deletions

View File

@ -1,6 +1,6 @@
falcon_nohdf5: falcon_nohdf5:
description: Falcon detector x-ray fluoresence II description: Falcon detector x-ray fluoresence II
deviceClass: phoenix_bec.devices.falcon_phoenix_no_hdf5.FalconcSAXS deviceClass: phoenix_bec.devices.falcon_phoenix_no_hdf5.FalconPHOENIX
deviceConfig: deviceConfig:
prefix: 'X07MB-SITORO:' prefix: 'X07MB-SITORO:'
deviceTags: deviceTags:

View File

@ -288,6 +288,10 @@ class FalconSetup(CustomDetectorMixin):
self.stop_detector() self.stop_detector()
self.stop_detector_backend() self.stop_detector_backend()
def set_trigger( def set_trigger(
self, mapping_mode: MappingSource, trigger_source: TriggerSource, ignore_gate: int = 0 self, mapping_mode: MappingSource, trigger_source: TriggerSource, ignore_gate: int = 0
) -> None: ) -> None:
@ -302,18 +306,25 @@ class FalconSetup(CustomDetectorMixin):
""" """
mapping = int(mapping_mode) mapping = int(mapping_mode)
trigger = trigger_source trigger = trigger_source
self.parent.collect_mode.put(m self.parent.collect_mode.put(mapping)
prefix ---- X07MB-ES-MA1: self.parent.pixel_advance_mode.put(trigger)
class attributes: self.parent.ignore_gate.put(ignore_gate)
custom_prepare_cls (FalconSetup) : Custom detector setup class for cSAXS,
inherits from CustomDetectorMixin
PSIDetectorBase.set_min_readout (float) : Minimum readout time for the detector
dxp (EpicsDXPFalcon) : DXP parameters for Falcon detector
mca (EpicsMCARecord) : MCA parameters for Falcon detector
hdf5 (FalconHDF5Plugins) : HDF5 parameters for Falcon detector
MIN_READOUT (float) : Minimum readout time for the detector
class FalconPhoenix(PSIDetectorBase):
"""
Falcon detector for phoenix
custom_prepare_cls (XMAPSetu
custom_prepare_cls (XMAPSetup) : Custom detector setup class for cSAXS,
inherits from CustomDetectorMixin
in __init__ of PSIDetecor base
PSIDetectorBase.set_min_readout (float) : Minimum readout time for the detector
dxp (EpicsDXPXMAP) : DXP parameters for XMAP detector
mca (EpicsMCARecord) : MCA parameters for XMAP detector
hdf5 (XMAPHDF5Plugins) : HDF5 parameters for XMAP detector
MIN_READOUT (float) : Minimum readout time for the detector
"""
# Specify which functions are revealed to the user in BEC client # Specify which functions are revealed to the user in BEC client
USER_ACCESS = ["describe"] USER_ACCESS = ["describe"]
@ -351,6 +362,4 @@ prefix ---- X07MB-ES-MA1:
if __name__ == "__main__": if __name__ == "__main__":
falcon = FalconcSAXS(name="falcon", prefix="X12SA-SITORO:", sim_mode=True) falcon = FalconPhoenix(name="falcon", prefix="X07MB-SITORO:", sim_mode=True)