summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-01-11 07:59:36 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-01-11 07:59:36 +0100
commit717078e082ccdf6b0fd148f4d692307d1c6cbce7 (patch)
treef75cc08ad2436e78c1bc0027a6200c907d2485d9 /bin
parentebae0d51b9aa8fc8821e3184334352b1d4293a4f (diff)
analyze-archive: show transition energy via power * duration
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-archive.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index bf6d5f5..25dfa27 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -613,6 +613,27 @@ if __name__ == "__main__":
model.stats.generic_param_dependence_ratio(trans, "energy"),
)
)
+ else:
+ try:
+ print(
+ "{:10s}: {:.0f} / {:.0f} / {:.0f} pJ (E=P·t)".format(
+ trans,
+ static_model(trans, "power")
+ * static_model(trans, "duration"),
+ static_model(trans, "rel_power_prev")
+ * static_model(trans, "duration"),
+ static_model(trans, "rel_power_next")
+ * static_model(trans, "duration"),
+ )
+ )
+ except KeyError:
+ print(
+ "{:10s}: {:.0f} pJ (E=P·t)".format(
+ trans,
+ static_model(trans, "power")
+ * static_model(trans, "duration"),
+ )
+ )
print("{:10s}: {:.0f} µs".format(trans, static_model(trans, "duration")))
try:
print(