diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-22 09:44:24 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-22 09:44:24 +0200 |
commit | 5ac0b79af4254746c320a9b4046194330befc970 (patch) | |
tree | 893ba0138389196d28d87065524f80c0bc67bc5d /lib | |
parent | 45881265830d53f92f410d8fe1ab530082ca873c (diff) |
utils: igtnore-param: handle empty list. derp.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/utils.py b/lib/utils.py index 1c639ca..4850a53 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -345,6 +345,10 @@ def observations_enum_to_bool(observations: list, kconfig=False): def ignore_param(by_name: dict, parameter_names: list, ignored_parameters: list): ignored_indexes = list() unpoppable_params = list() + + if ignored_parameters is None: + return + for param_name in sorted(ignored_parameters): try: ignored_indexes.append(parameter_names.index(param_name)) |