AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

DOC: Add user warning for invalid diffraction pattern values #219

Closed carterbox closed 2 years ago

carterbox commented 2 years ago

On two occasions users experienced NaN reconstructions because diffraction data contained negative values. Hours of debugging may be prevented if users are warned of this hard to diagnose problem.

Purpose

Warn users about improper data that may cause bad reconstructions.

Approach

Check all incoming diffraction patterns for non-finite and negative values.

Pre-Merge Checklists

Submitter

Reviewer