outfile = os.path.join(workingDir,output+".o")
outputobj=relapdata.relapdata(outfile,self.outputDeck)
if outputobj.hasAtLeastMinorData():
outputobj.writeCSV(os.path.join(workingDir,output+".csv"))
else:
raise IOError("Relap5 output file "+ command.split("-o")[0].split("-i")[-1].strip()+".o" + " does not contain any minor edits. It might be crashed!")
After Change
outputobj=relapdata.relapdata(os.path.join(workingDir,output+".o"),self.outputDeck)
if outputobj.hasAtLeastMinorData():
response = outputobj.returnData()return response
else:
raise IOError("Relap5 output file "+ command.split("-o")[0].split("-i")[-1].strip()+".o" + " does not contain any minor edits. It might be crashed!")
def checkForOutputFailure(self,output,workingDir):