def runPipeline2(self): self.p2 = pipe2(self.dir,self.pipe2FileName,self.jobName) outcome = self.p2.runPipeline() if outcome == 0: print 'Pipeline ran to completion' return True else: print 'Pipeline failed to run to completion' return False
def runPipeline2(self): # run the second subroutine (SFALL and FFT etc) self.p2 = pipe2(outputDir = self.mapProcessDir, inputFile = self.pipe2FileName, jobName = self.jobName, log = self.logFile) success = self.p2.runPipeline() if success: ln = '---> Subroutine ran to completion.' self.logFile.writeToLog(str = ln) return True else: print 'Subroutine failed to run to completion' return False