summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-01-22 13:06:08 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-01-22 13:06:08 +0100
commit944abc8a150ab6a92ec3e1cdacf8797093123c82 (patch)
tree2a2c1a0a5f78e978a5de057ccebf9eb8eb6a918c /bin
parent29eb6f2f9a65a876d6d276594cf6107ce57c29a4 (diff)
analyze-archive: --export-traces: Handle numpy arrays via NpEncoder
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-archive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index 5df8af9..bb3281a 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -352,7 +352,7 @@ if __name__ == "__main__":
target = f"{args.export_traces}/{name}.json"
print(f"exporting {target} ...")
with open(target, "w") as f:
- json.dump(data, f)
+ json.dump(data, f, cls=dfatool.utils.NpEncoder)
if args.with_substates is not None:
arg_dict = dict()