summaryrefslogtreecommitdiff
path: root/lib/cli.py
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-01-17 13:47:51 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-01-17 13:47:51 +0100
commitd177aef42765553ce2e740cbbb7efbb47ee90b2c (patch)
treed027d9162d401c34e8a1f6541e176ed6025f1f1e /lib/cli.py
parent298717e7f22a08ee9dc6d8805928d30c541987a7 (diff)
cli: fix energy_Pt model check
Diffstat (limited to 'lib/cli.py')
-rw-r--r--lib/cli.py4
1 files 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