Actions
Bug #3033
closedjahc finder error when template is larger than image
Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
03/31/2015
Due date:
% Done:
0%
Estimated time:
Affected Version:
Appion/Leginon 3.1.0
Show in known bugs:
Yes
Workaround:
use a smaller template
Description
Got this with a 500 default template scaling on an 512 image
Traceback (most recent call last): File "/Users/acheng/myami/leginon/gui/wx/JAHCFinder.py", line 181, in onTestButton self.node.correlateTemplate() File "/Users/acheng/myami/leginon/jahcfinder.py", line 132, in correlateTemplate self.hf.create_template() File "/Users/acheng/myami/leginon/jahcfinderback.py", line 193, in create_template template[offset[0]:offset[0]+origshape[0], offset[1]:offset[1]+origshape[1]] = im2 ValueError: could not broadcast input array from shape (595,595) into shape (42,42) Traceback (most recent call last): File "/Users/acheng/myami/leginon/gui/wx/JAHCFinder.py", line 181, in onTestButton self.node.correlateTemplate() File "/Users/acheng/myami/leginon/jahcfinder.py", line 132, in correlateTemplate self.hf.create_template() File "/Users/acheng/myami/leginon/jahcfinderback.py", line 193, in create_template template[offset[0]:offset[0]+origshape[0], offset[1]:offset[1]+origshape[1]] = im2 ValueError: could not broadcast input array from shape (536,536) into shape (12,12)
Actions