def openIn(self, autoDecompress=True): """open the input file for reading in the ExRun process""" path = self.__setupIn() if fileOps.isCompressed(path) and autoDecompress: return fileOps.openz(path) else: return open(path)
def openOut(self, autoCompress=True): """open the output file for writing from the ExRun process""" path = self.__setupOut(autoCompress) if fileOps.isCompressed(path) and autoCompress: return fileOps.openz(path, "w") else: return open(path, "w")