summaryrefslogtreecommitdiff
path: root/bin/analyze-archive.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-01-29 13:29:42 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-01-29 13:29:42 +0100
commit18afba9273d1fa2cce2ed66f8c5f102e59fa962f (patch)
tree0211cfe58a707a28144112c101d155fdd9608c9b /bin/analyze-archive.py
parentf931a9cce20cb1c719e793b7b7c6494ade9ae21f (diff)
add parameter look-up table models
Diffstat (limited to 'bin/analyze-archive.py')
-rwxr-xr-xbin/analyze-archive.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index 032c7ca..cf3449a 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -9,9 +9,9 @@ if __name__ == '__main__':
preprocessed_data = raw_data.get_preprocessed_data()
model = EnergyModel(preprocessed_data)
- static_model = model.get_static()
print('--- simple static model ---')
+ static_model = model.get_static()
for state in model.states():
print('{:10s}: {:.0f} µW'.format(state, static_model(state, 'power')))
for trans in model.transitions():
@@ -20,6 +20,10 @@ if __name__ == '__main__':
static_model(trans, 'rel_energy_prev'),
static_model(trans, 'rel_energy_next')))
print('{:10s}: {:.0f} µs'.format(trans, static_model(trans, 'duration')))
+ model.assess(static_model)
+
+ print('--- LUT ---')
+ lut_model = model.get_param_lut()
+ model.assess(lut_model)
- model.assess(model.get_static())
sys.exit(0)