def test_readEiger4mHeader(self):
     referenceDataPath = self.dataPath / 'ReadImageHeader_Eiger4M.json'
     inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath)
     h5MasterFilePath, h5DataFilePath, h5FileNumber = UtilsImage.getH5FilePath(
         inData['imagePath'][0])
     dictHeader = ReadImageHeader.readHdf5Header(h5MasterFilePath)
     self.assertEqual(dictHeader['description'], 'Dectris Eiger 4M')
Esempio n. 2
0
 def test_readEiger16mHeader(self):
     referenceDataPath = self.dataPath / "ReadImageHeader_Eiger16M.json"
     inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath)
     h5MasterFilePath, h5DataFilePath, h5FileNumber = UtilsImage.getH5FilePath(
         inData["imagePath"][0]
     )
     dictHeader = ReadImageHeader.readHdf5Header(h5MasterFilePath)
     self.assertEqual(dictHeader["description"], "Dectris EIGER2 CdTe 16M")