From e54c532c11cf9dd6103e6d1d462221b120fb6d1f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 4 Nov 2024 12:00:52 +0100 Subject: CLI: remove special case for TOTAL; it's available for LUT as well now --- lib/cli.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib') 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 ( -- cgit v1.2.3