Skip to content
Snippets Groups Projects
Commit 5c9212d3 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'jobsub_runNmbZfillCsv' into 'master'

compare runNmb in csv and args as ints

See merge request corryvreckan/corryvreckan!713
parents 5b56b19b 4f5dd1fe
Branches master
No related tags found
No related merge requests found
Pipeline #10032214 passed
......@@ -126,7 +126,8 @@ class Loader():
# variables identified by the csv header by the run specific value
try:
# check if the runnumber in csv is provided as list of values or range
runnrs = misc.parseBrackets(self.parameters[line]["runnumber"])
# convert to int in order to ignore leading zeros (zfill)
runnrs = list(map(int, misc.parseBrackets(self.parameters[line]["runnumber"])))
if not int(runnr) in runnrs and not runnr in runnrs:
continue
# process only the selected runnr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment