Project

General

Profile

Actions

Bug #4391

closed

phase correlator invalid value encountered in divid

Added by Anchi Cheng over 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Start date:
08/17/2016
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.2
Show in known bugs:
No
Workaround:

Description

Happened some times, maybe because there was nothing to correlate or the two images are both zeros

/Users/acheng/myami/pyami/correlator.py:137: RuntimeWarning: invalid value encountered in divide
  pcfft = ccfft / d

Exception in thread Thread-14:
Traceback (most recent call last):
  File "/Users/acheng/miniconda/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/Users/acheng/miniconda/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Users/acheng/myami/leginon/driftmanager.py", line 107, in monitorDrift
    status,final,im = self.acquireLoop(target, threshold=threshold)
  File "/Users/acheng/myami/leginon/driftmanager.py", line 212, in acquireLoop
    peak = self.peakfinder.subpixelPeak(newimage=pc)
  File "/Users/acheng/myami/pyami/peakfinder.py", line 171, in subpixelPeak
    roipeak = self.quadFitPeak(roi)
  File "/Users/acheng/myami/pyami/peakfinder.py", line 147, in quadFitPeak
    raise FindPeakError('peak least squares fit has bad coefficient')
FindPeakError: peak least squares fit has bad coefficient

Actions

Also available in: Atom PDF