Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions sweep_layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ def parse_args() -> argparse.Namespace:
action="store_true",
help="Also dump raw JSON lines for each configuration.",
)
p.add_argument(
"--quiet-errors",
action="store_true",
help="Suppress per-fanout error messages from app.py.",
)

return parser.parse_args()


Expand Down Expand Up @@ -146,8 +152,10 @@ def main() -> None:
for fanout in args.fanouts:
try:
data = run_app(app_path, leaves, args.style, fanout)
except Exception as e: # noqa: BLE001
print(f"ERROR: {e}", file=sys.stderr)
except Exception as e: # noqa: BLE001
if not args.quiet_errors:
print(f"ERROR for fanout={f}: {e}", file=sys.stderr)

continue

# keys are based on README description; tweak if you change app.py
Expand Down