From 7720e29d6ef60385900a53b8761816a0c6447fe7 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Thu, 8 Feb 2024 11:21:28 +0100 Subject: [PATCH] slightly neater order --- sf_daq_broker/detector/detector_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sf_daq_broker/detector/detector_config.py b/sf_daq_broker/detector/detector_config.py index 3ee378e..94ac05f 100644 --- a/sf_daq_broker/detector/detector_config.py +++ b/sf_daq_broker/detector/detector_config.py @@ -267,6 +267,9 @@ class DetectorConfig(): if detector_name not in DETECTOR_UDP_SRCMAC: raise_missing("srcmac") + if detector_name not in DETECTOR_TEMP_THRESHOLD: + raise_missing("temp_threshold") + if detector_name not in DETECTOR_TXNDELAY_FRAME: raise_missing("txndelay") @@ -277,9 +280,6 @@ class DetectorConfig(): if n_txndelay != n_tiles: raise RuntimeError(f"length {n_txndelay} of configured txndelay {txndelay} does not match number of tiles {n_tiles} of detector {detector_name}") - if detector_name not in DETECTOR_TEMP_THRESHOLD: - raise_missing("temp_threshold") - def get_detector_name(self): return self._detector_name