コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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']))
コード例 #4
0
 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)
コード例 #5
0
 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"]))