summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-03-24 11:39:20 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-03-24 11:39:20 +0100
commit422fbfd6ba25b20d115adaae8180875840f7df15 (patch)
tree0a63f093af1b1d9cdde864892ce0acdab9d72e6f /bin
parent0f2a3b9b68dae48df99b8fa5b54e3e6123c7ccca (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-xbin/analyze-archive.py6
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)