def preRunShellComms(self):
		#Need to delete previous out-files, since they get appended to (which slows down the parsing MASSIVELY)
		outPaths = [x.replace(".in",".out") for x in self._inpFilePaths]
		with contextlib.suppress(FileNotFoundError):
			[os.remove(x) for x in outPaths]
		inpPaths = self._inpFilePaths
		runComms = jobRun.pathListToPlatoRunComms(inpPaths, self.platoCodeStr)
		return runComms
 def preRunShellComms(self):
     if self.genPreShellComms is False:
         return None
     outPaths = [x.replace(".in", ".out") for x in self._inpFilePaths]
     with contextlib.suppress(FileNotFoundError):
         [os.remove(x) for x in outPaths]
     runComms = jobRun.pathListToPlatoRunComms(self._inpFilePaths,
                                               self._platoComm)
     return runComms
 def preRunShellComms(self):
     #Remove any previous jobs to stop the *.out files becoming too long (new jobs append to them)
     with contextlib.suppress(FileNotFoundError):
         [os.remove(x) for x in self.outFilePaths]
     return jobRun.pathListToPlatoRunComms(self.inpFilePaths,
                                           self.platoCodeStr)
示例#4
0
	def runConvCalcs(self, nCores=1):
		allInpFiles = self._createConvFiles()
		allRunComms = jobRun.pathListToPlatoRunComms(allInpFiles,self.runComm)
		jobRun.executeRunCommsParralel(allRunComms, nCores)
def _getRunCommPlatoDft(inpFilePath):
	runComm = jobRun.pathListToPlatoRunComms([inpFilePath],"dft")[0]
	return runComm
def _getRunCommPlatoTb1(inpFilePath):
	runComm = jobRun.pathListToPlatoRunComms([inpFilePath],"tb1")[0]
	return runComm
 def runComm(self):
     return jobRun.pathListToPlatoRunComms([self.inpPath], self.progTypeStr)