Esempio n. 1
0
    def createDataFile(self):
        runTimeObj = None

        for fI in listdir(self.name):
            if fI in ("forces", "forcesFS", "resistance"):
                runTimeObj = fI

        if not runTimeObj:
            return False
        else:
            path = join(self.name, runTimeObj,
                        listdir(join(self.name, runTimeObj))[0],
                        '%s.dat' % (runTimeObj))
            return DataFile.dataFile(path)