Project

General

Profile

Actions

Bug #3033

closed

jahc finder error when template is larger than image

Added by Anchi Cheng about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
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 #1

Updated by Anchi Cheng over 6 years ago

  • Status changed from Assigned to In Test

force the template into image fixes this.

Actions #2

Updated by Anchi Cheng over 6 years ago

  • Target version set to Appion/Leginon 3.3
Actions #3

Updated by Anchi Cheng over 6 years ago

  • Status changed from In Test to Closed
  • Show in known bugs changed from No to Yes
Actions

Also available in: Atom PDF