original_docstring: Construct the bulk of the pbs script to be submitted via qsub
docstring: Construct the bulk of the pbs script to be submitted via qsub
docstring_tokens: Construct the bulk of the pbs script to be submitted via qsub
code: def constructAndSubmitJobFile(self, identifier, time, isMainFile, after=None, afterany=None):
          """Construct the bulk of the pbs script to be submitted via qsub"""
          now = datetime.now()  
          jobName = self.jobName + identifier + now.strftime("%Y%m%d-%H%M%S%f") + ".job"
          self.jobFileName = os.path.join(self.jobDir, jobName)
          self.jobFile = open(self.jobFileName, "w")
          self.addHeaderAndCommands(time, isMainFile)
          self.completeJobFile()
          jobId = self.submitJob(jobName, after, afterany)
          return jobId
code_tokens: def constructAndSubmitJobFile ( self , identifier , time , isMainFile , after = None , afterany = None ) : now = datetime . now ( ) jobName = self . jobName + identifier + now . strftime ( "%Y%m%d-%H%M%S%f" ) + ".job" self . jobFileName = os . path . join ( self . jobDir , jobName ) self . jobFile = open ( self . jobFileName , "w" ) self . addHeaderAndCommands ( time , isMainFile ) self . completeJobFile ( ) jobId = self . submitJob ( jobName , after , afterany ) return jobId
short_docstring: Construct the bulk of the pbs script to be submitted via qsub
short_docstring_tokens: Construct the bulk of the pbs script to be submitted via qsub
comment: """Construct the bulk of the pbs script to be submitted via qsub"""