def _processRow(self, particle, row):
     setXmippAttributes(particle, row,
                        xmipp.MDL_ZSCORE_RESVAR, xmipp.MDL_ZSCORE_RESMEAN, xmipp.MDL_ZSCORE_RESCOV, xmipp.MDL_IMAGE_ORIGINAL,
                        xmipp.MDL_COST, xmipp.MDL_CONTINUOUS_GRAY_A, xmipp.MDL_CONTINUOUS_GRAY_B, xmipp.MDL_CONTINUOUS_X, xmipp.MDL_CONTINUOUS_Y)
     def __setXmippImage(label):
         attr = '_xmipp_' + xmipp.label2Str(label)
         if not hasattr(particle, attr):
             img = Image()
             setattr(particle, attr, img)
             img.setSamplingRate(particle.getSamplingRate())
         else:
             img = getattr(particle, attr)
         img.setLocation(xmippToLocation(row.getValue(label)))
     
     __setXmippImage(xmipp.MDL_IMAGE)
     __setXmippImage(xmipp.MDL_IMAGE_REF)
     __setXmippImage(xmipp.MDL_IMAGE_RESIDUAL)
     __setXmippImage(xmipp.MDL_IMAGE_COVARIANCE)
    def _processRow(self, particle, row):
        setXmippAttributes(particle, row, xmipp.MDL_ZSCORE_RESVAR,
                           xmipp.MDL_ZSCORE_RESMEAN, xmipp.MDL_ZSCORE_RESCOV,
                           xmipp.MDL_IMAGE_ORIGINAL, xmipp.MDL_COST,
                           xmipp.MDL_CONTINUOUS_GRAY_A,
                           xmipp.MDL_CONTINUOUS_GRAY_B, xmipp.MDL_CONTINUOUS_X,
                           xmipp.MDL_CONTINUOUS_Y)

        def __setXmippImage(label):
            attr = '_xmipp_' + xmipp.label2Str(label)
            if not hasattr(particle, attr):
                img = Image()
                setattr(particle, attr, img)
                img.setSamplingRate(particle.getSamplingRate())
            else:
                img = getattr(particle, attr)
            img.setLocation(xmippToLocation(row.getValue(label)))

        __setXmippImage(xmipp.MDL_IMAGE)
        __setXmippImage(xmipp.MDL_IMAGE_REF)
        __setXmippImage(xmipp.MDL_IMAGE_RESIDUAL)
        __setXmippImage(xmipp.MDL_IMAGE_COVARIANCE)
Esempio n. 3
0
 def _updateParticle(self, item, row):
     setXmippAttributes(item, row, md.MDL_NMA, md.MDL_COST)
Esempio n. 4
0
 def _updateParticle(self, item, row):
     setXmippAttributes(item, row, md.MDL_NMA, md.MDL_COST)