Skip to content

Commit 274a32b

Browse files
authored
Merge pull request cms-sw#33882 from kpedro88/Phase2-WF73
avoid accidentally choosing matrix types with similar names
2 parents 82d7061 + f8b4542 commit 274a32b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Configuration/PyReleaseValidation/python/MatrixReader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def showRaw(self, useInput, refRel=None, fromScratch=None, what='all',step1Only=
319319

320320
self.reset(what)
321321

322-
if self.what != 'all' and not any(el in matrixFile for el in self.what.split(",")):
322+
if self.what != 'all' and not any('_'+el in matrixFile for el in self.what.split(",")):
323323
print("ignoring non-requested file",matrixFile)
324324
continue
325325

@@ -495,7 +495,7 @@ def createWorkFlows(self, fileNameIn):
495495
def prepare(self, useInput=None, refRel='', fromScratch=None):
496496

497497
for matrixFile in self.files:
498-
if self.what != 'all' and not any(el in matrixFile for el in self.what.split(",")):
498+
if self.what != 'all' and not any('_'+el in matrixFile for el in self.what.split(",")):
499499
print("ignoring non-requested file",matrixFile)
500500
continue
501501
if self.what == 'all' and not self.filesDefault[matrixFile]:

0 commit comments

Comments
 (0)