Skip to content

Commit 86a8712

Browse files
author
AdrianoDee
committed
Restricting GenOnly wfs to baseline
1 parent 7ac2590 commit 86a8712

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Configuration/PyReleaseValidation/python/relval_upgrade.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def makeStepName(key,frag,step,suffix):
1616

1717
#just define all of them
1818

19+
## ... but we don't need all the flavors for the GenOnly
20+
def notForGenOnly(key,specialType):
21+
return "GenOnly" in key and specialType != 'baseline'
22+
1923
for year in upgradeKeys:
2024
for i,key in enumerate(upgradeKeys[year]):
2125
numWF=numWFAll[year][i]
@@ -26,6 +30,8 @@ def makeStepName(key,frag,step,suffix):
2630
continue
2731
stepList={}
2832
for specialType in upgradeWFs.keys():
33+
if notForGenOnly(key,specialType):
34+
continue
2935
stepList[specialType] = []
3036
hasHarvest = False
3137
for step in upgradeProperties[year][key]['ScenToRun']:
@@ -43,6 +49,10 @@ def makeStepName(key,frag,step,suffix):
4349
if 'HARVEST' in step: hasHarvest = True
4450

4551
for specialType,specialWF in upgradeWFs.items():
52+
53+
if notForGenOnly(key,specialType): ## we don't need all the flavors for the GEN
54+
continue
55+
4656
if (specialType != 'baseline') and ( ('PU' in step and step.replace('PU','') in specialWF.PU) or (step in specialWF.steps) ):
4757
stepList[specialType].append(stepMaker(key,frag[:-4],step,specialWF.suffix))
4858
# hack to add an extra step
@@ -71,6 +81,8 @@ def makeStepName(key,frag,step,suffix):
7181

7282
for specialType,specialWF in upgradeWFs.items():
7383
# remove other steps for premixS1
84+
if notForGenOnly(key,specialType):
85+
continue
7486
if specialType=="PMXS1":
7587
stepList[specialType] = stepList[specialType][:1]
7688
specialWF.workflow(workflows, numWF, info.dataset, stepList[specialType], key, hasHarvest)

Configuration/PyReleaseValidation/python/upgradeWorkflowComponents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2624,7 +2624,7 @@ def condition(self, fragment, stepList, key, hasHarvest):
26242624

26252625
class UpgradeWorkflow_Run3FSMBMixing(UpgradeWorkflow):
26262626
def setup_(self, step, stepName, stepDict, k, properties):
2627-
if 'Gen' in step:
2627+
if 'Gen' in step and 'GenOnly' not in step:
26282628
stepDict[stepName][k] = merge([{'-s':'GEN,SIM,RECOBEFMIX',
26292629
'--fast':'',
26302630
'--era':'Run3_FastSim',

0 commit comments

Comments
 (0)