parameters: (self)
docstring: Create pede jobs in addition to already existing ones. Return GT
          override snippet.
docstring_summary: Create pede jobs in addition to already existing ones. Return GT
          override snippet.
docstring_tokens: Create pede jobs in addition to already existing ones . Return GT override snippet .
function: def _create_additional_pede_jobs(self):
          """
          Create pede jobs in addition to already existing ones. Return GT
          override snippet.
          """
  
          # do some basic checks
          if not os.path.isdir("jobData"):
              print("No jobData-folder found.", end=' ')
              print("Properly set up the alignment before using the -w option.")
              sys.exit(1)
          if not os.path.exists("mps.db"):
              print("No mps.db found.", end=' ')
              print("Properly set up the alignment before using the -w option.")
              sys.exit(1)
  
          firstDataset = next(iter(self._datasets.values()))
          config_template = firstDataset["configTemplate"]
          collection = firstDataset["collection"]
  
          try:
              with open(config_template,"r") as f:
                  tmpFile = f.read()
          except IOError:
              print("The config-template '"+config_template+"' cannot be found.")
              sys.exit(1)
  
          tmpFile = re.sub('setupGlobaltag\s*\=\s*[\"\'](.*?)[\"\']',
                           'setupGlobaltag = \"'+self._global_tag+'\"',
                           tmpFile)
          tmpFile = re.sub('setupCollection\s*\=\s*[\"\'](.*?)[\"\']',
                           'setupCollection = \"'+collection+'\"',
                           tmpFile)
          tmpFile = re.sub(re.compile("setupRunStartGeometry\s*\=\s*.*$", re.M),
                           "setupRunStartGeometry = "+self._first_run,
                           tmpFile)
          self._config_template = tmpFile
  
          # first pede job exists already in this mode:
          self._first_pede_config = False
          self._create_pede_jobs()
function_tokens: def _create_additional_pede_jobs ( self ) : # do some basic checks if not os . path . isdir ( "jobData" ) : print ( "No jobData-folder found." , end = ' ' ) print ( "Properly set up the alignment before using the -w option." ) sys . exit ( 1 ) if not os . path . exists ( "mps.db" ) : print ( "No mps.db found." , end = ' ' ) print ( "Properly set up the alignment before using the -w option." ) sys . exit ( 1 ) firstDataset = next ( iter ( self . _datasets . values ( ) ) ) config_template = firstDataset [ "configTemplate" ] collection = firstDataset [ "collection" ] try : with open ( config_template , "r" ) as f : tmpFile = f . read ( ) except IOError : print ( "The config-template '" + config_template + "' cannot be found." ) sys . exit ( 1 ) tmpFile = re . sub ( 'setupGlobaltag\s*\=\s*[\"\'](.*?)[\"\']' , 'setupGlobaltag = \"' + self . _global_tag + '\"' , tmpFile ) tmpFile = re . sub ( 'setupCollection\s*\=\s*[\"\'](.*?)[\"\']' , 'setupCollection = \"' + collection + '\"' , tmpFile ) tmpFile = re . sub ( re . compile ( "setupRunStartGeometry\s*\=\s*.*$" , re . M ) , "setupRunStartGeometry = " + self . _first_run , tmpFile ) self . _config_template = tmpFile # first pede job exists already in this mode: self . _first_pede_config = False self . _create_pede_jobs ( )