Skip to content

Get position refinement working in near-field ptycho. - #86

Merged
allevitan merged 1 commit into
masterfrom
fix_near_field_pr
Jul 15, 2026
Merged

Get position refinement working in near-field ptycho.#86
allevitan merged 1 commit into
masterfrom
fix_near_field_pr

Conversation

@allevitan

Copy link
Copy Markdown
Collaborator

Basically, position refinement has never really been working with near-field ptycho. At the last HIKA beamtime, I realized that the issue was due to the fact that the default subpixel shifting algorithm for doing the probe-object interaction returns a shifted version of the exit wave as it's output.

This is correct for far-field ptycho, where it just causes a phase ramp to appear in the wavefield at the detector, but to do near-field ptycho properly it must be shifted back. I've implemented a fix, and this also dramatically improves the quality of the near field reconstructions on test data. I updated the near-field ptycho test to reflect this, lowering the acceptable loss value from 18 to 6.

@allevitan allevitan left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still looks good a few days later, going to merge

@allevitan
allevitan merged commit 49cafdb into master Jul 15, 2026
9 checks passed
@allevitan
allevitan deleted the fix_near_field_pr branch July 15, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant