From 85d3914a4d794270268490f9bb811c7015d2761d Mon Sep 17 00:00:00 2001 From: Lars Bogner Date: Mon, 27 Jul 2026 09:30:54 +0200 Subject: [PATCH] analyze: expose bin/pdg options on `analyze submit` `submit` calls `prep` internally but only forwarded --chunks, so a condor run could never use non-default energy-bins/bins/top-pdg. --- giant/cli.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/giant/cli.py b/giant/cli.py index 1f9769f..48b738a 100644 --- a/giant/cli.py +++ b/giant/cli.py @@ -1261,6 +1261,9 @@ def analyze_submit( help="Split each plot's data into this many event_id chunks/jobs", ), ] = 1, + n_energy_bins: Annotated[int, typer.Option("--energy-bins")] = 4, + n_marginal_bins: Annotated[int, typer.Option("--bins")] = 50, + top_k_pdg: Annotated[int, typer.Option("--top-pdg")] = 6, dry_run: Annotated[ bool, typer.Option("--dry-run", help="Write files but don't condor_submit") ] = False, @@ -1270,7 +1273,14 @@ def analyze_submit( from giant.analysis import SubmitConfig, prep, write_submit - path = prep(rollout_yaml, run_dir, n_chunks=chunks) + path = prep( + rollout_yaml, + run_dir, + n_chunks=chunks, + n_energy_bins=n_energy_bins, + n_marginal_bins=n_marginal_bins, + top_k_pdg=top_k_pdg, + ) cfg = SubmitConfig( run_dir=path, accounting_group=accounting_group,