analyze: expose bin/pdg options on analyze submit
CI / Lint (ruff check) (push) Successful in 1m8s
CI / Format (ruff format) (push) Successful in 1m3s
CI / Type check (ty) (push) Successful in 1m6s
CI / Tests (push) Successful in 1m52s
CI / Lint (ruff check) (pull_request) Successful in 1m4s
CI / Format (ruff format) (pull_request) Successful in 1m4s
CI / Type check (ty) (pull_request) Successful in 1m3s
CI / Tests (pull_request) Successful in 1m49s
CI / Bump version, build & publish wheel (push) Has been skipped
CI / Bump version, build & publish wheel (pull_request) Has been skipped

`submit` calls `prep` internally but only forwarded --chunks, so a
condor run could never use non-default energy-bins/bins/top-pdg.
This commit is contained in:
2026-07-27 09:30:54 +02:00
parent 86fc46b5a8
commit 85d3914a4d
+11 -1
View File
@@ -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,