From 8f426980c73e1fd166cfa96e02c88e04e85a2cfa Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 11 Jan 2021 16:20:50 +0100 Subject: evaluate E = P*t model. Seems slightly better in some cases TODO: Fix send duration model generation for cc1200, should improve eval --- bin/analyze-archive.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 25dfa27..ebf9f38 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -87,7 +87,17 @@ def model_quality_table(result_lists, info_list): for i, results in enumerate(result_lists): info = info_list[i] buf += " ||| " - if info is None or info(state_or_tran, key): + if ( + info is None + or info(state_or_tran, key) + or ( + key == "energy_Pt" + and ( + info(state_or_tran, "power") + or info(state_or_tran, "duration") + ) + ) + ): result = results["by_name"][state_or_tran][key] buf += format_quality_measures(result) else: -- cgit v1.2.3