Skip to content

Commit bb3cec0

Browse files
committed
Allow overriding label in outputfile
1 parent 3bfaa48 commit bb3cec0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fact_funfolding/scripts/unfold_simulations.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@
2828
@click.argument('output_file')
2929
@click.option('-t', '--obstime', type=u.Quantity, default='50 h')
3030
@click.option('--seed', type=int, default=0)
31+
@click.option('--label', type=str, help='Override label in config')
3132
def main(
3233
config,
3334
gamma_file,
3435
corsika_file,
3536
output_file,
3637
obstime,
3738
seed,
39+
label,
3840
):
3941
'''
4042
unfold fact simulations
@@ -167,7 +169,7 @@ def main(
167169
counts=vec_f_est,
168170
counts_err=sigma_vec_f,
169171
tau=config.tau,
170-
label=config.label,
172+
label=label or config.label,
171173
add_features=additional_features_to_save,
172174
)
173175

0 commit comments

Comments
 (0)