def _updateParticle(self, item, row): setXmippAttributes(item, row, md.MDL_ZSCORE, md.MDL_ZSCORE_SHAPE1, md.MDL_ZSCORE_SHAPE2, md.MDL_ZSCORE_SNR1, md.MDL_ZSCORE_SNR2, md.MDL_CUMULATIVE_SSNR) if row.getValue(md.MDL_ENABLED) <= 0: item._appendItem = False else: item._appendItem = True
def _updateClass(self, item): classId = item.getObjId() classRow = findRow(self.mdClasses, xmipp.MDL_REF2, classId) representative = item.getRepresentative() representative.setTransform(rowToAlignment(classRow, ALIGN_PROJ)) representative.setLocation(xmippToLocation(classRow.getValue(xmipp.MDL_IMAGE))) setXmippAttributes(representative, classRow, xmipp.MDL_ANGLE_ROT) setXmippAttributes(representative, classRow, xmipp.MDL_ANGLE_TILT) setXmippAttributes(representative, classRow, xmipp.MDL_CLASS_COUNT) self.averageSet.append(representative) reprojection = Image() reprojection.setLocation(xmippToLocation(classRow.getValue(xmipp.MDL_IMAGE1))) item.reprojection = reprojection