handle single detector

This commit is contained in:
2022-07-04 22:19:02 +02:00
parent 28b6e6be38
commit 6e2d19c1cd
+3
View File
@@ -309,6 +309,9 @@ def split_channels(channels):
def flatten_detectors(dets):
if isinstance(dets, str): #TODO: improve that logic
dets = [dets]
if isinstance(dets, dict):
return harmonize_detector_dict(dets)