AdvancedPhotonSource / tike

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

NEW: Mitigate scan position global drift #304

Closed carterbox closed 6 months ago

carterbox commented 6 months ago

Purpose

Mitigate position correction slowly moving the object out of the field of view.

Approach

Use only the center half of the object patches to compute the position update directions. This avoids noise around the edges where information is less dense.

Subtract the mean position update direction using trim_mean before each update. This in theory should keep the object centered by preventing net movement. In practice, there is still a small amount of movement each epoch.

Pre-Merge Checklists

Submitter

Reviewer

pep8speaks commented 6 months ago

Hello @carterbox! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 285:81: E501 line too long (95 > 80 characters) Line 676:81: E501 line too long (104 > 80 characters)

Comment last updated at 2024-04-18 20:04:20 UTC