Skip to content

Commit

Permalink
Abstract early deletion settings to a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Nov 23, 2016
1 parent 0fd1027 commit 71a871a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Configuration/Applications/python/ConfigBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2223,8 +2223,8 @@ def prepare(self, doChecking = False):
# FIXME: remove when no longer needed
if "RECO" in self.stepMap or "RAW2RECO" in self.stepMap:
self.pythonCfgCode += "\n# Add early deletion of temporary data products to reduce peak memory need\n"
self.pythonCfgCode += "from RecoTracker.Configuration.customiseEarlyDeleteForSeeding import customiseEarlyDeleteForSeeding\n"
self.pythonCfgCode += "process = customiseEarlyDeleteForSeeding(process)\n"
self.pythonCfgCode += "from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDeleteForRECO\n"
self.pythonCfgCode += "process = customiseEarlyDeleteForRECO(process)\n"
self.pythonCfgCode += "# End adding early deletion\n"


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Abstract all early deletion settings here

from RecoTracker.Configuration.customiseEarlyDeleteForSeeding import customiseEarlyDeleteForSeeding

def customiseEarlyDeleteForRECO(process):
process = customiseEarlyDeleteForSeeding(process)
return process

0 comments on commit 71a871a

Please sign in to comment.