diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-22 16:02:29 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-22 16:02:29 +0100 |
commit | f4c6b5e18d0e57c5346903a453a3343909f49228 (patch) | |
tree | 416f9a92054acc7c504a82820c3180753bc5969a /lib/model.py | |
parent | 944abc8a150ab6a92ec3e1cdacf8797093123c82 (diff) |
Support LUT model independent of --skip-param-stats
Diffstat (limited to 'lib/model.py')
-rw-r--r-- | lib/model.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/model.py b/lib/model.py index dadbe02..8f93bd3 100644 --- a/lib/model.py +++ b/lib/model.py @@ -261,11 +261,7 @@ class AnalyticModel: for k, v in attr.items(): static_model[name][k] = v.get_static(use_mean=use_mean) lut_model[name][k] = dict() - if not v.by_param: - raise RuntimeError( - f"ModelAttribute({name}, {k}).by_param is None. Did you run ParallelParamStats.compute?" - ) - for param, model_value in v.by_param.items(): + for param, model_value in v.get_by_param().items(): lut_model[name][k][param] = v.get_lut(param, use_mean=use_mean) def lut_median_getter(name, key, **kwargs): |