slightly neater order

This commit is contained in:
2024-02-08 11:21:28 +01:00
committed by Auf keinen Fall Jens
parent 24ab36530e
commit 7720e29d6e
+3 -3
View File
@@ -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