summaryrefslogtreecommitdiff
path: root/bin/analyze-archive.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-03-05 09:31:51 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-03-05 09:31:51 +0100
commit740ff820fe5d321f4ac17cc6a3bf87e623363052 (patch)
treee4520b6d25caa86ff0d2f6141a3a9623a165dadf /bin/analyze-archive.py
parent593f4767829f0aae2e598a09d337da88d169973a (diff)
analyze-archive: fix json export
Diffstat (limited to 'bin/analyze-archive.py')
-rwxr-xr-xbin/analyze-archive.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index 65e25cc..d7e6a59 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -51,7 +51,11 @@ from dfatool.functions import (
)
from dfatool.model import PTAModel
from dfatool.validation import CrossValidator
-from dfatool.utils import filter_aggregate_by_param, detect_outliers_in_aggregate
+from dfatool.utils import (
+ filter_aggregate_by_param,
+ detect_outliers_in_aggregate,
+ NpEncoder,
+)
from dfatool.automata import PTA
@@ -1089,6 +1093,6 @@ if __name__ == "__main__":
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)
+ json.dump(json_model, f, indent=2, sort_keys=True, cls=NpEncoder)
sys.exit(0)