diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-22 13:06:08 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-22 13:06:08 +0100 |
commit | 944abc8a150ab6a92ec3e1cdacf8797093123c82 (patch) | |
tree | 2a2c1a0a5f78e978a5de057ccebf9eb8eb6a918c /bin | |
parent | 29eb6f2f9a65a876d6d276594cf6107ce57c29a4 (diff) |
analyze-archive: --export-traces: Handle numpy arrays via NpEncoder
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-archive.py | 2 |
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() |