diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-07-08 15:43:39 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-07-08 15:43:39 +0200 |
commit | 283bdad5ab7fa461be535c2b8c7beefab96c2ee1 (patch) | |
tree | 4d79714910e3489386a383279fb984379d7a2690 /bin/analyze-archive.py | |
parent | 906c1e0c71c8ad58934990ebe686adf7496e0dce (diff) | |
parent | 67f44728a1dd9a3c786bd5602bd1ac0834ebd8ea (diff) |
Merge branch 'master' into lennart
Diffstat (limited to 'bin/analyze-archive.py')
-rwxr-xr-x | bin/analyze-archive.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 908915c..5c7c97e 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -377,7 +377,12 @@ if __name__ == "__main__": if raw_data.version <= 1: data_source = "MIMOSA" elif raw_data.version == 2: - data_source = "MSP430 EnergyTrace" + if raw_data.ptalog and "sync" in raw_data.ptalog["opt"]["energytrace"]: + data_source = "MSP430 EnergyTrace, sync={}".format( + raw_data.ptalog["opt"]["energytrace"]["sync"] + ) + else: + data_source = "MSP430 EnergyTrace" print(f" Data source ID: {raw_data.version} ({data_source})") preprocessed_data = raw_data.get_preprocessed_data() |