Пример #1
0
 def tes_execute_ControlIndexing_id23eh1_EX1(self):
     referenceDataPath = self.dataPath / 'id23eh1_EX1_2.json'
     inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath)
     controlIndexing = ControlIndexing(
         inData=inData, workingDirectorySuffix='local_user_1')
     controlIndexing.execute()
     self.assertTrue(controlIndexing.isSuccess())
 def test_execute_ControlIndexing_id30a1_2(self):
     referenceDataPath = self.dataPath / "id30a1_2.json"
     inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath)
     controlIndexing = ControlIndexing(
         inData=inData, workingDirectorySuffix="local_user_1")
     controlIndexing.execute()
     self.assertTrue(controlIndexing.isSuccess())
Пример #3
0
 def tes_execute_ControlIndexing_id23eh2_Y1(self):
     referenceDataPath = self.dataPath / 'id23eh2_Y2.json'
     inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath)
     controlIndexing = ControlIndexing(inData=inData,
                                       workingDirectorySuffix='id23eh2_Y2')
     controlIndexing.execute()
     self.assertTrue(controlIndexing.isSuccess())
     print(controlIndexing.outData["resultIndexing"]["spaceGroupNumber"])
Пример #4
0
 def test_execute_ControlIndexing_MWB_CD269A_07_4(self):
     referenceDataPath = self.dataPath / 'MWB-CD269A_07_4.json'
     inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath)
     controlIndexing = ControlIndexing(
         inData=inData, workingDirectorySuffix='MWB-CD269A_07_4')
     controlIndexing.execute()
     self.assertTrue(controlIndexing.isSuccess())
     self.assertEqual(
         controlIndexing.outData["resultIndexing"]["spaceGroupNumber"], 75)
 def test_execute_ControlIndexing_local_user_1(self):
     referenceDataPath = self.dataPath / 'local-user_1.json'
     inData = UtilsTest.loadAndSubstitueTestData(referenceDataPath)
     controlIndexing = ControlIndexing(
         inData=inData,
         workingDirectorySuffix='local_user_1'
     )
     controlIndexing.execute()
     self.assertTrue(controlIndexing.isSuccess())
     self.assertEqual(controlIndexing.outData["resultIndexing"]["spaceGroupNumber"], 16)
Пример #6
0
 def indexing(prefix, listSubWedge):
     outDataIndexing = None
     outDataGB = None
     # Start indexing
     inDataIndexing = {
         "subWedge": listSubWedge,
     }
     indexingTask = ControlIndexing(
         inData=inDataIndexing,
         workingDirectorySuffix=prefix
     )
     indexingTask.start()
     # Start background esitmation
     inDataGenerateBackground = {
         "subWedge": listSubWedge,
     }
     generateBackground = XDSGenerateBackground(
         inData=inDataGenerateBackground,
         workingDirectorySuffix = prefix
     )
     generateBackground.start()
     generateBackground.join()
     # Check indexing
     indexingTask.join()
     if indexingTask.isSuccess():
         outDataIndexing = indexingTask.outData
         outDataGB = generateBackground.outData
     return outDataIndexing, outDataGB
Пример #7
0
 def test_getListPermutation(self):
     listFile = list(range(4))
     listPermutation = ControlIndexing.getListPermutation(listFile)
     pprint.pprint(listPermutation)