def testImportFMF(self): from fmfile import FMFLoader table = FMFLoader.loadFMFFromFile(self.filename) print "Testing imported SampleContainer for consistency..." for column in ['y0', 'y1', 'y2', 'y3', 'y4', 'y5', 'y6', 'y7', 'y8']: self.assertEqual(table[column].dimensions[0].id, table['x'].id)
def registerFMF(self, filename, temporary=False): """ Extracts a SampleContainer from a given FMF file and stores it permanently. The emd5 of the SampleContainer that has been generated is returned. filename -- path to the FMF file temporary -- see registerDataContainer """ sc = FMFLoader.loadFMFFromFile(filename) self.registerDataContainer(sc, temporary) return sc.id
def registerFMF(self, filename, temporary=False): """ Extracts a SampleContainer from a given FMF file and stores it permanently. The emd5 of the SampleContainer that has been generated is returned. filename -- path to the FMF file temporary -- see registerDataContainer """ sc = FMFLoader.loadFMFFromFile(filename) self.registerDataContainer(sc, temporary) return sc.id