def test_execute(self): referenceDataPath = self.dataPath / "bes_328.json" inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath) task = ImageQualityIndicators(inData=inData) task.execute() self.assertFalse(task.isFailure()) outData = task.outData self.assertTrue("imageQualityIndicators" in outData)
def test_execute_pilatus6m_10images_crystfel(self): referenceDataPath = self.dataPath / 'pilatus6m_10images_crystfel.json' inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath) task = ImageQualityIndicators(inData=inData) task.execute() self.assertFalse(task.isFailure()) outData = task.outData self.assertTrue('imageQualityIndicators' in outData)
def test_execute(self): referenceDataPath = self.dataPath / 'id30a1.json' inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath) task = ImageQualityIndicators(inData=inData) task.execute() self.assertFalse(task.isFailure()) outData = task.outData self.assertTrue('imageQualityIndicators' in outData) self.assertEqual(304, len(outData['imageQualityIndicators']))
def test_execute_eiger4m_h5_10images(self): referenceDataPath = self.dataPath / "eiger4m_h5_10images.json" inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath) task = ImageQualityIndicators(inData=inData) task.execute() self.assertFalse(task.isFailure()) outData = task.outData self.assertTrue("imageQualityIndicators" in outData) self.assertEqual(len(outData["imageQualityIndicators"]), 51)
def test_execute(self): referenceDataPath = self.dataPath / "inDataImageQualityIndicatorsTask.json" inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath) task = ImageQualityIndicators(inData=inData) task.execute() self.assertFalse(task.isFailure()) outData = task.outData self.assertTrue("imageQualityIndicators" in outData) # self.assertTrue('resolution_limit' in outData['crystfel_results'][0]) self.assertEqual(72, len(outData["imageQualityIndicators"]))