@@ -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+
1923for 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 )
0 commit comments