Skip to content

Commit

Permalink
fix mistake in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Sep 27, 2024
1 parent e1fdf83 commit 4b89609
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2589,9 +2589,9 @@ def setupPU_(self, step, stepName, stepDict, k, properties):
d = merge([stepDict[self.getStepName(step)][k]])
if "_PMXS1S2" in self.suffix and "--filein" in d:
filein = d["--filein"]
m = re.search("step(?P<ind>\\d+)_", filein)
m = re.search("step(?P<ind>\\d+)", filein)
if m:
d["--filein"] = filein.replace(m.group(), "step%d_"%(int(m.group("ind"))+1))
d["--filein"] = filein.replace(m.group(), "step%d"%(int(m.group("ind"))+1))
stepDict[stepName][k] = d
# run2/3 WFs use Nano (not NanoPU) in PU WF
stepDict[self.getStepName(step)][k] = merge([d])
Expand Down

0 comments on commit 4b89609

Please sign in to comment.