summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2023-11-27 13:43:43 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2023-11-27 13:43:43 +0100
commit9103959499ef1f87381f7c406170afca1ee3bb27 (patch)
treef30c7139d76e3ed3eaa6ad2f041c25bae8a8c678 /lib
parent7b564fc3f766c2428ba70a449c12024607f555a7 (diff)
show-model=static: leave out parameter dependence heuristics
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/lib/cli.py b/lib/cli.py
index 0f35f88..7bed07d 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -9,7 +9,7 @@ from dfatool.functions import (
import numpy as np
-def print_static(model, static_model, name, attribute):
+def print_static(model, static_model, name, attribute, with_dependence=False):
unit = " "
if attribute == "power":
unit = "µW"
@@ -26,15 +26,18 @@ def print_static(model, static_model, name, attribute):
model.attr_by_name[name][attribute].stats.generic_param_dependence_ratio(),
)
)
- for param in model.parameters:
- print(
- "{:10s} {:13s} {:15s}: {:.2f}".format(
- "",
- "dependence on",
- param,
- model.attr_by_name[name][attribute].stats.param_dependence_ratio(param),
+ if with_dependence:
+ for param in model.parameters:
+ print(
+ "{:10s} {:13s} {:15s}: {:.2f}".format(
+ "",
+ "dependence on",
+ param,
+ model.attr_by_name[name][attribute].stats.param_dependence_ratio(
+ param
+ ),
+ )
)
- )
def print_info_by_name(model, by_name):