Skip to content

Improve com crop#350

Open
ercius wants to merge 10 commits into
OpenChemistry:masterfrom
ercius:improve_com_crop
Open

Improve com crop#350
ercius wants to merge 10 commits into
OpenChemistry:masterfrom
ercius:improve_com_crop

Conversation

@ercius
Copy link
Copy Markdown
Collaborator

@ercius ercius commented Dec 9, 2025

I previously used a square mask to reject electrons outside the central beam. This is not ideal. I thought that making a radial mask would be slow, but it turns out to be slightly faster per frame. I estimate about 4 seconds saved for a medium sized 1kx1k sparse dataset and a more accurate measurement. Win-win!

This needs to be tested before merging. Ill update when it looks good to merge.

@ercius
Copy link
Copy Markdown
Collaborator Author

ercius commented Apr 28, 2026

@cjh1 This looks good to go on my side. I tested it on some other data sets. I am not sure how to run the tests though.

If this is good then we can merge and cut a new release.

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