def _updateParticle(self, item, row): item.setClassId(row.getValue(md.RLN_PARTICLE_CLASS)) item.setTransform(rowToAlignment(row, em.ALIGN_PROJ)) item._rlnLogLikeliContribution = em.Float( row.getValue('rlnLogLikeliContribution')) item._rlnMaxValueProbDistribution = em.Float( row.getValue('rlnMaxValueProbDistribution'))
def _updateClass(self, item): classId = item.getObjId() if classId in self._classesInfo: index, fn, row = self._classesInfo[classId] item.setAlignment2D() item.getRepresentative().setLocation(index, fn) item._rlnclassDistribution = em.Float(row.getValue('rlnClassDistribution')) item._rlnAccuracyRotations = em.Float(row.getValue('rlnAccuracyRotations')) item._rlnAccuracyTranslations = em.Float(row.getValue('rlnAccuracyTranslations'))
def _updateParticle(self, item, row): #print "_updateParticle" #row.printDict() item.setClassId(row.getValue(md.RLN_PARTICLE_CLASS)) item.setTransform(rowToAlignment(row, em.ALIGN_2D)) item._rlnNormCorrection = em.Float(row.getValue('rlnNormCorrection')) item._rlnLogLikeliContribution = em.Float(row.getValue('rlnLogLikeliContribution')) item._rlnMaxValueProbDistribution = em.Float(row.getValue('rlnMaxValueProbDistribution'))