summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-03-17 08:56:07 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-03-17 08:56:07 +0100
commitde38d6384eb8213eb3c5a5ca1345fdc94675f240 (patch)
tree04be161f8a46ca2c171dffb8cfdcc8b4a330e9da /bin
parent815bb24acd320d25deb2e40978fdfbe170ded01b (diff)
analyze-log: add --export-model-with-lut
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-log.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/analyze-log.py b/bin/analyze-log.py
index 2c45318..3f04e01 100755
--- a/bin/analyze-log.py
+++ b/bin/analyze-log.py
@@ -46,6 +46,11 @@ def main():
"--export-model", metavar="FILE", type=str, help="Export JSON model to FILE"
)
parser.add_argument(
+ "--export-model-with-lut",
+ action="store_true",
+ help="Include LUT in model export",
+ )
+ parser.add_argument(
"logfiles",
nargs="+",
type=str,
@@ -287,7 +292,7 @@ def main():
if args.export_model:
print(f"Exporting model to {args.export_model}")
- json_model = model.to_json()
+ json_model = model.to_json(with_lut=args.export_model_with_lut)
with open(args.export_model, "w") as f:
json.dump(
json_model, f, indent=2, sort_keys=True, cls=dfatool.utils.NpEncoder