diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-08-13 12:15:34 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-08-13 12:15:34 +0200 |
commit | 0c718587bf4e66bd0561e03741104da8ed9978a6 (patch) | |
tree | 483ebf797faa61a4dc8da41cca19ddca15549c4f /lib/utils.py | |
parent | af5db9d744b2e965e52d96c623edff41a8af14b2 (diff) |
Improve _try_fits performance and fairness
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. |