summaryrefslogtreecommitdiff
path: root/lib/model.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-02-24 13:20:38 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-02-24 13:20:38 +0100
commit4c277009e2787cf9b82a899b700c63214da0dc20 (patch)
treea0d69af9b90b990b831b2837db871b368e64d03f /lib/model.py
parente309e16a403db090c51534cf2fecb7ba6bd02921 (diff)
lut_median_getter: handle param tuples, not just lists
Diffstat (limited to 'lib/model.py')
-rw-r--r--lib/model.py5
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]