diff options
Diffstat (limited to 'lib/utils.py')
-rw-r--r-- | lib/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils.py b/lib/utils.py index f31aa8e..3ac4792 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -75,6 +75,9 @@ def parse_conf_str(conf_str): conf_dict[key] = soft_cast_float(value) return conf_dict +def remove_index_from_tuple(parameters, index): + return (*parameters[:index], *parameters[index+1:]) + def param_slice_eq(a, b, index): """ Check if by_param keys a and b are identical, ignoring the parameter at index. |