diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-24 11:39:20 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-24 11:39:20 +0100 |
commit | 422fbfd6ba25b20d115adaae8180875840f7df15 (patch) | |
tree | 0a63f093af1b1d9cdde864892ce0acdab9d72e6f /bin | |
parent | 0f2a3b9b68dae48df99b8fa5b54e3e6123c7ccca (diff) |
Add nearly correct JSON export for v0 measurements without PTA definition
Transition source/destination names are not correct yet
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-archive.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 701096d..869d32e 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -1157,9 +1157,8 @@ if __name__ == "__main__": if args.export_webconf: if not pta: print( - "[E] --export-energymodel requires --hwmodel to be set", file=sys.stderr + "Note: v0 measurements do not embed the PTA used for benchmark generation. Estimating PTA from recorded observations." ) - sys.exit(1) json_model = model.to_json() mogrify(json_model) json_model_str = json.dumps(json_model, indent=2, sort_keys=True, cls=NpEncoder) @@ -1179,9 +1178,8 @@ if __name__ == "__main__": if args.export_energymodel: if not pta: print( - "[E] --export-energymodel requires --hwmodel to be set", file=sys.stderr + "Note: v0 measurements do not embed the PTA used for benchmark generation. Estimating PTA from recorded observations." ) - sys.exit(1) json_model = model.to_json() with open(args.export_energymodel, "w") as f: json.dump(json_model, f, indent=2, sort_keys=True, cls=NpEncoder) |