Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix maxevents #59

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
set maxEvents to the number of events per file
  • Loading branch information
esseivaju committed Jul 11, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 70e2d77cc84c4cd790a38a462f1de6a2b8bacbfc
6 changes: 6 additions & 0 deletions src/raythena/actors/esworker.py
Original file line number Diff line number Diff line change
@@ -199,6 +199,12 @@ def modify_job(self, job: PandaJob) -> PandaJob:
else:
cmd = f"{cmd} --jobNumber={job_number} "

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

job["jobPars"] = cmd
return job