Actions
Bug #2080
opentemplateCorrelator crash
Status:
In Test
Priority:
Normal
Assignee:
Category:
Image Processing
Target version:
Start date:
10/04/2012
Due date:
% Done:
0%
Estimated time:
Affected Version:
Appion/Leginon 2.2.0
Show in known bugs:
No
Workaround:
Description
I am getting a bug where templateCorrelator (from trunk) crashes when the program finds just 1 particle. Zero particles is OK, and >1 particles is OK, just not 1 particle. The exception is below:
Traceback (most recent call last): File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/bin/templateCorrelator.py", line 190, in <module> imgLoop.run() File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/appionlib/appionLoop2.py", line 70, in run results = self.loopProcessImage(imgdata) File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/appionlib/particleLoop2.py", line 104, in loopProcessImage self.peaktree = filterLoop.FilterLoop.loopProcessImage(self, imgdata) File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/appionlib/filterLoop.py", line 87, in loopProcessImage peaktree = self.processImage(imgdata, self.filtarray) File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/bin/templateCorrelator.py", line 163, in processImage peaktree = apPeaks.findPeaks(imgdata, ccmaplist, self.params) File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/appionlib/apPeaks.py", line 51, in findPeaks maxpeaks, maxsizemult, msg, tmpldbid, mapdiam, bin=bin, peaktype=peaktype) File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/appionlib/apPeaks.py", line 101, in findPeaksInMap peaktree = convertBlobsToPeaks(blobtree, bin, tmpldbid, count, mapdiam, peaktype) File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/appionlib/apPeaks.py", line 365, in convertBlobsToPeaks peakdict['ycoord'] = int(round( float(blobclass.stats['center'][0])*float(bin) )) TypeError: float() argument must be a string or a number
Actions