Skip to content

Conversation

@allevitan
Copy link
Collaborator

I've found myself using FancyPtycho.center_probes() quite a lot recently. The point is to take an in-progress probe reconstruction, which might appear near the edge or corner of the field of view in real space, and move it to the center of the field of view. This is often needed so the tails of the beam can be well reconstructed.

I think the behavior of this function should be to always do the centering in real space, because this is a very common step that's needed in reconstructions. Centering in Fourier space is rarely needed, and it's always easy to forget if the behavior of this function changes when you switch to using fourier_probe=True

I also added some test coverage and updated the docs

…in real space even when fourier_probe is set to True
Copy link
Collaborator

@yoshikisd yoshikisd left a comment

Choose a reason for hiding this comment

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

These changes look good to me. The pytests work on my machine. Let's merge this.

@yoshikisd yoshikisd merged commit da695c7 into master Jun 10, 2025
6 checks passed
@yoshikisd yoshikisd deleted the center_probe_real_space branch June 10, 2025 02:17
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.

3 participants