diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-11-27 13:43:43 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-11-27 13:43:43 +0100 |
commit | 9103959499ef1f87381f7c406170afca1ee3bb27 (patch) | |
tree | f30c7139d76e3ed3eaa6ad2f041c25bae8a8c678 /lib | |
parent | 7b564fc3f766c2428ba70a449c12024607f555a7 (diff) |
show-model=static: leave out parameter dependence heuristics
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cli.py | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -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): |