From d177aef42765553ce2e740cbbb7efbb47ee90b2c Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 17 Jan 2024 13:47:51 +0100 Subject: cli: fix energy_Pt model check --- lib/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli.py b/lib/cli.py index 7eaaa61..e7551df 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -250,11 +250,11 @@ def model_quality_table( if results is not None and ( info is None or ( - key != "energy_Pt" + attr != "energy_Pt" and type(info(key, attr)) is not df.StaticFunction ) or ( - key == "energy_Pt" + attr == "energy_Pt" and ( type(info(key, "power")) is not df.StaticFunction or type(info(key, "duration")) is not df.StaticFunction -- cgit v1.2.3