AdvancedPhotonSource / tike

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

REF: Update rPIE/lstsq_grad position correction #205

Closed carterbox closed 2 years ago

carterbox commented 2 years ago

Purpose

Refactor gradient position updates in lstsq and rPIE methods to improve stability.

Approach

Adds sets a minimum value for the update denominator to prevent division by zero. Uses all probes instead of just the last probe for rPIE position update. Use rPIE-like denominator for position update in lstsq method.

Pre-Merge Checklists

Submitter

Reviewer