summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-11-04 12:00:52 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-11-04 12:00:52 +0100
commite54c532c11cf9dd6103e6d1d462221b120fb6d1f (patch)
tree6bc150424959ed6b6f8988567b0baecf299baa87 /lib
parenta48d200a7ccf7494f1e197737e81874006cb0d27 (diff)
CLI: remove special case for TOTAL; it's available for LUT as well now
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/cli.py b/lib/cli.py
index b94bdbb..75f6890 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -294,10 +294,7 @@ def model_quality_table(
for results, info in ((lut, None), (model, model_info), (static, None)):
buf += " "
- # special case for "TOTAL" (--add-total-observation)
- if attr == "TOTAL" and attr not in results[key]:
- buf += f"""{"----":>7s} """
- elif results is not None and (
+ if results is not None and (
info is None
or (
attr != "energy_Pt"
@@ -315,7 +312,7 @@ def model_quality_table(
buf += format_quality_measures(result, error_metric=error_metric)
else:
buf += f"""{"----":>7s} """
- if attr != "TOTAL" and type(model_info(key, attr)) is not df.StaticFunction:
+ if type(model_info(key, attr)) is not df.StaticFunction:
if model[key][attr]["mae"] > static[key][attr]["mae"]:
buf += " :-("
elif (