def preProcess(self, _edObject=None):
     EDPluginControl.preProcess(self)
     self.DEBUG("EDPluginControlIndexingIndicatorsv1_1.preProcess")
     # Load and prepare the execution plugin
     self.edPluginIndexingLabelit = self.loadPlugin(self.strPluginIndexingLabelit)
     self.edPluginIndexingLabelit.setUseWarningInsteadOfError(True)
     xsDataIndexingInput = XSDataIndexingInput()
     xsDataIndexingInput.setDataCollection(self.getDataInput("dataCollection")[0])
     if self.hasDataInput("crystal"):
         xsDataIndexingInput.setCrystal(self.getDataInput("crystal")[0])
     if self.hasDataInput("refinedExperimentalCondition"):
         self.xsDataExperimentalCondition = self.getDataInput("refinedExperimentalCondition")[0]
     else:
         self.xsDataExperimentalCondition = self.getDataInput("dataCollection")[0].getSubWedge()[0].getExperimentalCondition()
     xsDataIndexingInput.setExperimentalCondition(self.xsDataExperimentalCondition)
     from EDHandlerXSDataPhenixv1_1 import EDHandlerXSDataPhenixv1_1
     xsDataInputLabelitIndexing = EDHandlerXSDataPhenixv1_1.generateXSDataInputLabelitIndexing(xsDataIndexingInput)
     self.edPluginIndexingLabelit.setDataInput(xsDataInputLabelitIndexing)
     #
     if self.bDoLabelitIndexing:
         if (self.getControlledPluginName("indicatorsPlugin") is not None):
             self.strControlledIndicatorsPluginName = self.getControlledPluginName("indicatorsPlugin")
     self.edPluginControlIndicators = self.loadPlugin(self.strControlledIndicatorsPluginName)
     # Extract the images from the data collections
     xsDataSubWedgeList = self.getDataInput("dataCollection")[0].getSubWedge()
     xsDataInputControlImageQualityIndicators = XSDataInputControlImageQualityIndicators()
     for xsDataSubWedge in xsDataSubWedgeList:
         xsDataImageList = xsDataSubWedge.getImage()
         for xsDataImage in xsDataImageList:
             xsDataInputControlImageQualityIndicators.addImage(xsDataImage)
     self.edPluginControlIndicators.setDataInput(xsDataInputControlImageQualityIndicators)
 def loadPluginIndexingInputData(self):
     self.verboseDebug(
         "EDPluginControlIndexingLabelitv10.loadPluginIndexingInputData...")
     xsDataIndexingInput = self.getDataInput()
     from EDHandlerXSDataPhenixv1_1 import EDHandlerXSDataPhenixv1_1
     self.getPluginIndexing(
     ).dataInput = EDHandlerXSDataPhenixv1_1.generateXSDataInputLabelitIndexing(
         xsDataIndexingInput)
Exemplo n.º 3
0
 def preProcess(self, _edObject=None):
     EDPluginControl.preProcess(self)
     self.DEBUG("EDPluginControlIndexingIndicatorsv1_1.preProcess")
     # Load and prepare the execution plugin
     self.edPluginIndexingLabelit = self.loadPlugin(
         self.strPluginIndexingLabelit)
     self.edPluginIndexingLabelit.setUseWarningInsteadOfError(True)
     xsDataIndexingInput = XSDataIndexingInput()
     xsDataIndexingInput.setDataCollection(
         self.getDataInput("dataCollection")[0])
     if self.hasDataInput("crystal"):
         xsDataIndexingInput.setCrystal(self.getDataInput("crystal")[0])
     if self.hasDataInput("refinedExperimentalCondition"):
         self.xsDataExperimentalCondition = self.getDataInput(
             "refinedExperimentalCondition")[0]
     else:
         self.xsDataExperimentalCondition = self.getDataInput(
             "dataCollection")[0].getSubWedge()[0].getExperimentalCondition(
             )
     xsDataIndexingInput.setExperimentalCondition(
         self.xsDataExperimentalCondition)
     from EDHandlerXSDataPhenixv1_1 import EDHandlerXSDataPhenixv1_1
     xsDataInputLabelitIndexing = EDHandlerXSDataPhenixv1_1.generateXSDataInputLabelitIndexing(
         xsDataIndexingInput)
     self.edPluginIndexingLabelit.setDataInput(xsDataInputLabelitIndexing)
     #
     if self.bDoLabelitIndexing:
         if (self.getControlledPluginName("indicatorsPlugin") is not None):
             self.strControlledIndicatorsPluginName = self.getControlledPluginName(
                 "indicatorsPlugin")
     self.edPluginControlIndicators = self.loadPlugin(
         self.strControlledIndicatorsPluginName)
     # Extract the images from the data collections
     xsDataSubWedgeList = self.getDataInput(
         "dataCollection")[0].getSubWedge()
     xsDataInputControlImageQualityIndicators = XSDataInputControlImageQualityIndicators(
     )
     for xsDataSubWedge in xsDataSubWedgeList:
         xsDataImageList = xsDataSubWedge.getImage()
         for xsDataImage in xsDataImageList:
             xsDataInputControlImageQualityIndicators.addImage(xsDataImage)
     self.edPluginControlIndicators.setDataInput(
         xsDataInputControlImageQualityIndicators)
 def loadPluginIndexingInputData(self):
     self.verboseDebug("EDPluginControlIndexingLabelitv10.loadPluginIndexingInputData...")
     xsDataIndexingInput = self.getDataInput()
     from EDHandlerXSDataPhenixv1_1 import EDHandlerXSDataPhenixv1_1
     self.getPluginIndexing().dataInput = EDHandlerXSDataPhenixv1_1.generateXSDataInputLabelitIndexing(xsDataIndexingInput)