def test_readCBFHeader(self): referenceDataPath = self.dataPath / 'ReadImageHeader_Pilatus2M.json' inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath) dictHeader = ReadImageHeader.readCBFHeader(inData['imagePath'][0]) self.assertEqual(dictHeader['Detector:'], 'PILATUS2 3M, S/N 24-0118, ESRF ID23')
def test_readCBFHeader(self): referenceDataPath = self.dataPath / "ReadImageHeader_Pilatus2M.json" inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath) dictHeader = ReadImageHeader.readCBFHeader(inData["imagePath"][0]) self.assertEqual(dictHeader["Detector:"], "PILATUS2 3M, S/N 24-0118, ESRF ID23")