From 3d817963b3f76211714f421f6d94445ac3e32e57 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 10 Dec 2019 08:22:32 +0100 Subject: make analyze-archive --export work without --hwmodel --- bin/analyze-archive.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 8470ab6..a70b23b 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -74,7 +74,7 @@ Options: Load DFA hardware model from JSON or YAML --export-energymodel= - Export energy model. Requires --hwmodel. + Export energy model. Works out of the box for v1 and v2 logfiles. Requires --hwmodel for v0 logfiles. """ import getopt @@ -283,6 +283,9 @@ if __name__ == '__main__': print('No valid data available. Abort.') sys.exit(2) + if pta is None and raw_data.pta is not None: + pta = PTA.from_json(raw_data.pta) + by_name, parameters, arg_count = pta_trace_to_aggregate(preprocessed_data, ignored_trace_indexes) filter_aggregate_by_param(by_name, parameters, opts['filter-param']) -- cgit v1.2.3