diff --git a/adijif/utils.py b/adijif/utils.py index 6af2f80..dc03d6d 100644 --- a/adijif/utils.py +++ b/adijif/utils.py @@ -37,8 +37,13 @@ def get_jesd_mode_from_params(conv: converter, **kwargs: int) -> List[dict]: for key, value in kwargs.items(): if key not in settings: raise Exception(f"{key} not in JESD Configs") - if settings[key] == value: - found += 1 + if isinstance(value, list): + for v in value: + if settings[key] == v: + found += 1 + else: + if settings[key] == value: + found += 1 if found == needed: results.append({"mode": mode, "jesd_mode": standard})