From: Dustin M. <dus...@gm...> - 2016-10-27 23:08:26
|
Hi all, I get an error with calculate_correlation_matrix.py when I try to use binning. Traceback (most recent call last): File "/share/apps/pytom/classification/calculate_correlation_matrix.py", line 246, in <module> worker.start(job, verbose) File "/share/apps/pytom/classification/calculate_correlation_matrix.py", line 54, in start self.run(verbose) File "/share/apps/pytom/classification/calculate_correlation_matrix.py", line 110, in run vf = f.getTransformedVolume(binning) File "/share/apps/pytom/basic/structures.py", line 1863, in getTransformedVolume volumeTransformed = vol(volume.sizeX(),volume.sizeY(),volume.sizeZ()) AttributeError: tuple object has no attribute sizeX I traced the error to pytom.basic.structure.Particle.getVolume and at line 1631 the call to resize actually returns a tuple of the resized volume and the Fourier volume. This patch seems to fix things. 1631c1631 < volume, fvolume = resize(volume=volume, factor=1./binning, interpolation='Fourier') --- > volume = resize(volume=volume, factor=1./binning, interpolation='Fourier') Hope this helps anyone who runs into the same problem. -- Cheers, Dustin |