diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-02 15:33:40 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-02 15:33:40 +0100 |
commit | a820126a4decaa28a8f2a803c1b4102c4c6b5de4 (patch) | |
tree | dfd5f947ad8362ebbddba62c47e58c1b16f234b7 /bin/eval-outlier-removal.py | |
parent | c0ded9f5fee9441e9cb429ff79bd25d134a3ae31 (diff) |
PTAModel: Turn states, transitions, and states_and_transitions into attributes
Diffstat (limited to 'bin/eval-outlier-removal.py')
-rwxr-xr-x | bin/eval-outlier-removal.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/eval-outlier-removal.py b/bin/eval-outlier-removal.py index c03266d..d6c905c 100755 --- a/bin/eval-outlier-removal.py +++ b/bin/eval-outlier-removal.py @@ -105,7 +105,7 @@ if __name__ == "__main__": print("--- simple static model ---") static_m1 = m1.get_static() static_m2 = m2.get_static() - # for state in model.states(): + # for state in model.states: # print('{:10s}: {:.0f} µW ({:.2f})'.format( # state, # static_model(state, 'power'), @@ -115,7 +115,7 @@ if __name__ == "__main__": # '', # param, # model.param_dependence_ratio(state, 'power', param))) - # for trans in model.transitions(): + # for trans in model.transitions: # print('{:10s}: {:.0f} / {:.0f} / {:.0f} pJ ({:.2f} / {:.2f} / {:.2f})'.format( # trans, static_model(trans, 'energy'), # static_model(trans, 'rel_energy_prev'), @@ -137,7 +137,7 @@ if __name__ == "__main__": print("--- param model ---") param_m1, param_i1 = m1.get_fitted() - for state in m1.states(): + for state in m1.states: for attribute in ["power"]: if param_i1(state, attribute): print( @@ -150,7 +150,7 @@ if __name__ == "__main__": "", param_i1(state, attribute)["function"].model_args ) ) - for trans in m1.transitions(): + for trans in m1.transitions: for attribute in [ "energy", "rel_energy_prev", @@ -172,7 +172,7 @@ if __name__ == "__main__": ) ) param_m2, param_i2 = m2.get_fitted() - for state in m2.states(): + for state in m2.states: for attribute in ["power"]: if param_i2(state, attribute): print( @@ -185,7 +185,7 @@ if __name__ == "__main__": "", param_i2(state, attribute)["function"].model_args ) ) - for trans in m2.transitions(): + for trans in m2.transitions: for attribute in [ "energy", "rel_energy_prev", |