From e10be3e9bff008550346349a05ef6e2e89ba52c3 Mon Sep 17 00:00:00 2001 From: gac-x07mb Date: Wed, 16 Oct 2024 17:39:35 +0200 Subject: [PATCH] syntax erro correction --- .../device_configs/current_devices_tmp.yaml | 20 +++++++++++++++++++ phoenix_bec/devices/falcon_phoenix.py | 10 ++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/phoenix_bec/device_configs/current_devices_tmp.yaml b/phoenix_bec/device_configs/current_devices_tmp.yaml index a956e5f..3bc7f68 100644 --- a/phoenix_bec/device_configs/current_devices_tmp.yaml +++ b/phoenix_bec/device_configs/current_devices_tmp.yaml @@ -390,4 +390,24 @@ falcon_hdf5: softwareTrigger: false # # END FALCON with HDF5 +# +# +# falcon without hdf5 +# +falcon_hdf5: + description: Falcon detector x-ray fluoresence with hdf5 plugin from device class phoenix_bec.devices. falcon_phoenix.FalconPhoenix + deviceClass: phoenix_bec.devices.falcon_phoenix.FalconPhoenix + deviceConfig: + prefix: 'X07MB-SITORO:' + deviceTags: + - phoenix + - falcon + - with hdf5 + - phoenix_falcon.yaml + onFailure: buffer + enabled: true + readoutPriority: async + softwareTrigger: false +# +# END FALCON with HDF5 # \ No newline at end of file diff --git a/phoenix_bec/devices/falcon_phoenix.py b/phoenix_bec/devices/falcon_phoenix.py index 6410ddb..9e9d24b 100644 --- a/phoenix_bec/devices/falcon_phoenix.py +++ b/phoenix_bec/devices/falcon_phoenix.py @@ -42,7 +42,8 @@ CHANGES LOG and """ -EpicsDXPFalcon(Device): + +import enum import threading import time @@ -60,7 +61,12 @@ logger = bec_logger.logger class FalconError(Exception): - hdf5 = Cpt(FalconHDF5Plugins, "HDF1:") + """Base class for exceptions in this module.""" + + +class FalconTimeoutError(FalconError): + """Raised when the Falcon does not respond in time.""" + class DetectorState(enum.IntEnum): """Detector states for Falcon detector"""