From 944abc8a150ab6a92ec3e1cdacf8797093123c82 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 22 Jan 2024 13:06:08 +0100 Subject: analyze-archive: --export-traces: Handle numpy arrays via NpEncoder --- bin/analyze-archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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() -- cgit v1.2.3