def convertPermanences(sourceSP, destSP):
numColumns = sourceSP.getNumColumns()<EOL>numInputs = sourceSP.getNumInputs()<EOL>for i in range(numColumns):<EOL><INDENT>potential = numpy.zeros(numInputs).astype(uintType)<EOL>sourceSP.getPotential(i, potential)<EOL>destSP.setPotential(i, potential)<EOL>perm = numpy.zeros(numInputs).astype(realType)<EOL>sourceSP.getPermanence(i, perm)<EOL>destSP.setPermanence(i, perm)<EOL><DEDENT>
Transfer the permanences from source to dest SP's. This is used in test
routines to counteract some drift between implementations.
We assume the two SP's have identical configurations/parameters.