Unverified Commit bb6f92fc authored by Henri Payno's avatar Henri Payno
Browse files

h52nx: if valid_camera_names is None then consider the given camera as valid

parent 3b2352e0
Pipeline #60930 failed with stages
in 1 second
......@@ -417,6 +417,8 @@ class StandardAcquisition(BaseAcquisition):
def camera_is_valid(self, det_name):
assert isinstance(det_name, str)
if self.configuration.valid_camera_names is None:
return True
for vcm in self.configuration.valid_camera_names:
if fnmatch.fnmatch(det_name, vcm):
return True
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment