correct syntax error
This commit is contained in:
@ -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:
|
||||||
|
@ -256,7 +256,7 @@ class FalconSetup(CustomDetectorMixin):
|
|||||||
#):
|
#):
|
||||||
# # Retry stop detector and wait for remaining time
|
# # Retry stop detector and wait for remaining time
|
||||||
# raise FalconTimeoutError(
|
# raise FalconTimeoutError(
|
||||||
# f"Failed to stop detector, timeou t with state {signal_conditions[0][0]}"
|
# f"Failed to stop detector, timeout with state {signal_conditions[0][0]}"
|
||||||
# )
|
# )
|
||||||
|
|
||||||
def stop_detector_backend(self) -> None:
|
def stop_detector_backend(self) -> None:
|
||||||
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user