示例#1
0
 def indexingToIntegration(self, _edPlugin=None):
     # Run Kappa if configured
     if self._runKappa:
         xsDataInputControlKappa = XSDataInputControlKappa()
         xsDataInputControlKappa.dataCollection = self._xsDataCollection
         xsDataInputControlKappa.selectedSolution = self._xsDataResultCharacterisation.indexingResult.selectedSolution
         self._edPluginControlKappa.dataInput = xsDataInputControlKappa
         self.executePluginSynchronous(self._edPluginControlKappa)
         if not self._edPluginControlKappa.isFailure():
             self._xsDataResultCharacterisation.kappaReorientation = self._edPluginControlKappa.dataOutput
     # Create the XDS background image
     xsDataInputControlXDSGenerateBackgroundImage = XSDataInputControlXDSGenerateBackgroundImage(
     )
     xsDataInputControlXDSGenerateBackgroundImage.setDataCollection(
         self._xsDataCollection)
     self._edPluginControlXDSGenerateBackgroundImage.setDataInput(
         xsDataInputControlXDSGenerateBackgroundImage)
     self._edPluginControlXDSGenerateBackgroundImage.execute()
     # Integrate the reference images
     xsDataIntegrationInput = XSDataIntegrationInput()
     xsDataIntegrationInput.setDataCollection(
         self._xsDataResultCharacterisation.getDataCollection())
     xsDataIndexingResult = self._xsDataResultCharacterisation.getIndexingResult(
     )
     xsDataExperimentalConditionRefinded = xsDataIndexingResult.getSelectedSolution(
     ).getExperimentalConditionRefined()
     xsDataIntegrationInput.setExperimentalConditionRefined(
         xsDataExperimentalConditionRefinded)
     xsDataIntegrationInput.setSelectedIndexingSolution(
         xsDataIndexingResult.getSelectedSolution())
     self._edPluginControlIntegration.setDataInput(xsDataIntegrationInput)
     self.executePluginSynchronous(self._edPluginControlIntegration)
 def indexingToIntegration(self, _edPlugin=None):
     # Create the XDS background image
     xsDataInputControlXDSGenerateBackgroundImage = XSDataInputControlXDSGenerateBackgroundImage()
     xsDataInputControlXDSGenerateBackgroundImage.setDataCollection(self._xsDataCollection)
     self._edPluginControlXDSGenerateBackgroundImage.setDataInput(xsDataInputControlXDSGenerateBackgroundImage)
     self._edPluginControlXDSGenerateBackgroundImage.execute()
     # Integrate the reference images 
     xsDataIntegrationInput = XSDataIntegrationInput()
     xsDataIntegrationInput.setDataCollection(self._xsDataResultCharacterisation.getDataCollection())
     xsDataIndexingResult = self._xsDataResultCharacterisation.getIndexingResult()
     xsDataExperimentalConditionRefinded = xsDataIndexingResult.getSelectedSolution().getExperimentalConditionRefined()
     xsDataIntegrationInput.setExperimentalConditionRefined(xsDataExperimentalConditionRefinded)
     xsDataIntegrationInput.setSelectedIndexingSolution(xsDataIndexingResult.getSelectedSolution())
     self._edPluginControlIntegration.setDataInput(xsDataIntegrationInput)
     self.executePluginSynchronous(self._edPluginControlIntegration)
示例#3
0
 def indexingToIntegration(self, _edPlugin=None):
     # Create the XDS background image
     xsDataInputControlXDSGenerateBackgroundImage = XSDataInputControlXDSGenerateBackgroundImage(
     )
     xsDataInputControlXDSGenerateBackgroundImage.setDataCollection(
         self._xsDataCollection)
     self._edPluginControlXDSGenerateBackgroundImage.setDataInput(
         xsDataInputControlXDSGenerateBackgroundImage)
     self._edPluginControlXDSGenerateBackgroundImage.execute()
     # Integrate the reference images
     xsDataIntegrationInput = XSDataIntegrationInput()
     xsDataIntegrationInput.setDataCollection(
         self._xsDataResultCharacterisation.getDataCollection())
     xsDataIndexingResult = self._xsDataResultCharacterisation.getIndexingResult(
     )
     xsDataExperimentalConditionRefinded = xsDataIndexingResult.getSelectedSolution(
     ).getExperimentalConditionRefined()
     xsDataIntegrationInput.setExperimentalConditionRefined(
         xsDataExperimentalConditionRefinded)
     xsDataIntegrationInput.setSelectedIndexingSolution(
         xsDataIndexingResult.getSelectedSolution())
     self._edPluginControlIntegration.setDataInput(xsDataIntegrationInput)
     self.executePluginSynchronous(self._edPluginControlIntegration)
 def indexingToIntegration(self, _edPlugin=None):
     # Run Kappa if configured
     if self._runKappa:
         xsDataInputControlKappa = XSDataInputControlKappa()
         xsDataInputControlKappa.dataCollection = self._xsDataCollection
         xsDataInputControlKappa.selectedSolution = self._xsDataResultCharacterisation.indexingResult.selectedSolution
         self._edPluginControlKappa.dataInput = xsDataInputControlKappa
         self.executePluginSynchronous(self._edPluginControlKappa)
         if not self._edPluginControlKappa.isFailure():
             self._xsDataResultCharacterisation.kappaReorientation = self._edPluginControlKappa.dataOutput
     # Create the XDS background image
     xsDataInputControlXDSGenerateBackgroundImage = XSDataInputControlXDSGenerateBackgroundImage()
     xsDataInputControlXDSGenerateBackgroundImage.setDataCollection(self._xsDataCollection)
     self._edPluginControlXDSGenerateBackgroundImage.setDataInput(xsDataInputControlXDSGenerateBackgroundImage)
     self._edPluginControlXDSGenerateBackgroundImage.execute()
     # Integrate the reference images
     xsDataIntegrationInput = XSDataIntegrationInput()
     xsDataIntegrationInput.setDataCollection(self._xsDataResultCharacterisation.getDataCollection())
     xsDataIndexingResult = self._xsDataResultCharacterisation.getIndexingResult()
     xsDataExperimentalConditionRefinded = xsDataIndexingResult.getSelectedSolution().getExperimentalConditionRefined()
     xsDataIntegrationInput.setExperimentalConditionRefined(xsDataExperimentalConditionRefinded)
     xsDataIntegrationInput.setSelectedIndexingSolution(xsDataIndexingResult.getSelectedSolution())
     self._edPluginControlIntegration.setDataInput(xsDataIntegrationInput)
     self.executePluginSynchronous(self._edPluginControlIntegration)
 def testCheckParameters(self):
     xsDataInput = XSDataInputControlXDSGenerateBackgroundImage()
     edPluginExecXDSGenerateBackgroundImage = self.createPlugin()
     edPluginExecXDSGenerateBackgroundImage.setDataInput(xsDataInput)
     edPluginExecXDSGenerateBackgroundImage.checkParameters()