Commit 49ea1e99 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

add flatfield validator

parent 4d160f5f
Pipeline #33816 passed with stages
in 2 minutes and 35 seconds
......@@ -228,6 +228,18 @@ def cor_validator(val):
else:
return None
@validator
def flatfield_enabled_validator(val):
res, error = convert_to_bool(val)
if error is not None:
if "force" in val.lower():
res = "forced"
else:
raise ValueError("Invalid value, can be 'yes', 'no' or 'forced'")
return res
@validator
def phase_method_validator(val):
return name_range_checker(
......
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