Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix probe norm bug #656

Merged
merged 2 commits into from
May 10, 2024
Merged

fix probe norm bug #656

merged 2 commits into from
May 10, 2024

Conversation

bsavitzky
Copy link
Member

This PR fixes a bug in probe generation, where non-zero pixels outside of the center beam caused normalization issues.

Note that the solution here makes use of the Probe.measure_disk method instead of the datacube.get_probe_size method which implement similar functionality to avoid breaking changes elsewhere for now. A more comprehensive consolidation of functionality (there is a third method with similar functionality in process.calibration.probe, as well as some redundant metadata storage) will be implemented in v15. For (upcoming) v14.15+, using Probe.measure_disk is recommended.

@bsavitzky bsavitzky requested a review from smribet May 9, 2024 16:04
Copy link
Collaborator

@smribet smribet left a comment

Choose a reason for hiding this comment

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

Very helpful for noisy data!

@smribet smribet merged commit 22f8859 into py4dstem:dev May 10, 2024
6 checks passed
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.

2 participants