diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-02-24 13:20:38 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-02-24 13:20:38 +0100 |
commit | 4c277009e2787cf9b82a899b700c63214da0dc20 (patch) | |
tree | a0d69af9b90b990b831b2837db871b368e64d03f | |
parent | e309e16a403db090c51534cf2fecb7ba6bd02921 (diff) |
lut_median_getter: handle param tuples, not just lists
-rw-r--r-- | lib/model.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/model.py b/lib/model.py index 5b2b418..9765274 100644 --- a/lib/model.py +++ b/lib/model.py @@ -598,7 +598,10 @@ class AnalyticModel: lut_model[name][k][param] = v.get_lut(param, use_mean=use_mean) def lut_median_getter(name, key, param, arg=list(), **kwargs): - param.extend(map(soft_cast_int, arg)) + if arg: + if type(param) is tuple: + param = list(param) + param.extend(map(soft_cast_int, arg)) param = tuple(param) try: return lut_model[name][key][param] |