summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-12-03 14:27:10 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-12-03 14:27:10 +0100
commitde1187bdd18d7494d58665ac8f46ad9a42790384 (patch)
tree77f3e07adcd6f29106dd45deb75a4527026505dd /lib
parent570c89818a036ae9e5d48d32028cb5594494d7a1 (diff)
model: fix parameter counts in dataref export
Diffstat (limited to 'lib')
-rw-r--r--lib/model.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/model.py b/lib/model.py
index 2bd8aa2..9133196 100644
--- a/lib/model.py
+++ b/lib/model.py
@@ -449,7 +449,9 @@ class AnalyticModel:
"scalar": 0,
"enum": 0,
}
- for param_index in range(len(self.parameters)):
+ for param_index in range(
+ len(self.parameters) + self._num_args.get(name, 0)
+ ):
param_type = self.param_type_by_name[name][param_index]
if param_type == ParamType.UNSET:
param_data["unset"] += 1