Skip to content

Commit

Permalink
set maxEvents to the smallest of 500 and nEventsPerInputFile
Browse files Browse the repository at this point in the history
  • Loading branch information
esseivaju committed Jul 15, 2024
1 parent 70e2d77 commit eb01a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raythena/actors/esworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def modify_job(self, job: PandaJob) -> PandaJob:
else:
cmd = f"{cmd} --jobNumber={job_number} "

maxEvents = job['nEventsPerInputFile']
maxEvents = min(500, job['nEventsPerInputFile'])
if "--maxEvents=" in cmd:
cmd = re.sub(r"--maxEvents=[0-9]+", f"--maxEvents={maxEvents}", cmd)
else:
Expand Down

0 comments on commit eb01a79

Please sign in to comment.