Project

General

Profile

Actions

Bug #5435

open

divide by zero error in normalizeFromDarkAndBright

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

Status:
Assigned
Priority:
Urgent
Assignee:
Category:
-
Target version:
Start date:
01/11/2018
Due date:
% Done:

0%

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

Description

When there is dead pixel, bright and dark values are the same, therefore it creates an error in gain correction process.

/opt/applications/myami/trunk/lib/python2.7/site-packages/pyami/imagefun.py:835: RuntimeWarning: divide by zero encountered in divide
  gain=m/bminusd
/opt/applications/myami/trunk/lib/python2.7/site-packages/pyami/imagefun.py:836: RuntimeWarning: invalid value encountered in multiply
  correctedarray=(rawarray-darkarray)*gain

See leginon/corrector.py calc_norm for all the things need to be done to get a reliable norm image.

Actions

Also available in: Atom PDF