Skip to content

Commit 9a9459f

Browse files
committed
multiple years option
1 parent 1ea3ea3 commit 9a9459f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/boostedhh/run_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def parse_common_hh_args(parser):
109109
"--year",
110110
help="year",
111111
type=str,
112-
default="2022",
112+
nargs="+",
113+
required=True,
113114
choices=["2018", "2022", "2022EE", "2023", "2023BPix"],
114115
)
115116

src/boostedhh/submit_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ def submit(
189189

190190
# submit jobs
191191
nsubmit = 0
192-
for sample in fileset:
193-
for subsample, tot_files in fileset[sample].items():
192+
for sample, sfiles in fileset.items():
193+
for subsample, tot_files in sfiles.items():
194194
if args.submit:
195195
print("Submitting " + subsample)
196196

@@ -239,7 +239,7 @@ def submit(
239239
Path(f"{localcondor}.log").unlink()
240240

241241
if args.submit:
242-
os.system("condor_submit %s" % localcondor)
242+
os.system(f"condor_submit {localcondor}")
243243
else:
244244
print("To submit ", localcondor)
245245
nsubmit = nsubmit + 1

0 commit comments

Comments
 (0)