diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-11 13:50:53 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-11 13:50:53 +0100 |
commit | 9826f7cbad31ef0e04bf14e8b1ed2e95a81b4054 (patch) | |
tree | cc9882a2164fe9a7442f8192acd58092808053b8 /bin/analyze-log.py | |
parent | cb30dd6e7a5f278c5655093f0322ab517c898a28 (diff) |
add --export-json option
Diffstat (limited to 'bin/analyze-log.py')
-rwxr-xr-x | bin/analyze-log.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/analyze-log.py b/bin/analyze-log.py index 1d92bc7..c74e206 100755 --- a/bin/analyze-log.py +++ b/bin/analyze-log.py @@ -258,6 +258,10 @@ def main(): args.export_dref, dref, precision=args.dref_precision ) + if args.export_json: + with open(args.export_json, "w") as f: + json.dump(model.to_json(), f, sort_keys=True, cls=dfatool.utils.NpEncoder) + if args.plot_param: for kv in args.plot_param.split(";"): try: |