diff --git a/chime_frb_api/workflow/work.py b/chime_frb_api/workflow/work.py index 354faf0..8f87e1f 100644 --- a/chime_frb_api/workflow/work.py +++ b/chime_frb_api/workflow/work.py @@ -391,7 +391,7 @@ def post_init(cls, values: Dict[str, Any]): reformatted = True break - if (" " or "_") in values["pipeline"]: + if any(char in {" ", "_"} for char in values["pipeline"]): values["pipeline"] = values["pipeline"].replace(" ", "-") values["pipeline"] = values["pipeline"].replace("_", "-") reformatted = True