From 3ece595a29dc19b95a7f43fca39131b344d7ad3f Mon Sep 17 00:00:00 2001 From: Mizev Andrew <150728785+carpalsgrabby@users.noreply.github.com> Date: Tue, 25 Nov 2025 09:52:09 +0100 Subject: [PATCH] Validate fanouts > 1 Fanout 0 or 1 is nonsense here. --- sweep_layouts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sweep_layouts.py b/sweep_layouts.py index 159ea49..fc6f754 100644 --- a/sweep_layouts.py +++ b/sweep_layouts.py @@ -141,6 +141,10 @@ def main() -> None: rows = [] raw_json_lines = [] + invalid_fanouts = [f for f in args.fanouts if f <= 1] + if invalid_fanouts: + print(f"ERROR: Fanouts must be > 1, got {invalid_fanouts}", file=sys.stderr) + sys.exit(1) for leaves in leaf_counts: for fanout in args.fanouts: