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

improve radial average speed with nimdage.mean() #63

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

McHaillet
Copy link
Collaborator

One more update for version 0.3.2. I discovered online that the radial average calculation could be much faster using ndimage.mean().

Results completely overlap but the speed increase is massive:

whitening_filter

@McHaillet McHaillet marked this pull request as ready for review November 9, 2023 15:26
@McHaillet McHaillet requested a review from sroet November 9, 2023 15:26
Copy link
Collaborator

@sroet sroet left a comment

Choose a reason for hiding this comment

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

1 small comment, feel free to ignore. LGTM otherwise.
Also, please document the "massive speed increase" are we talking about 2x, 10x 10000x?

src/pytom_tm/weights.py Outdated Show resolved Hide resolved
@McHaillet
Copy link
Collaborator Author

1 small comment, feel free to ignore. LGTM otherwise. Also, please document the "massive speed increase" are we talking about 2x, 10x 10000x?

This is for a large tomogram, dimensions 900x900x300.
Old version took ~425s, new version ~16s. So the speed up is roughly 25x

@McHaillet McHaillet merged commit 81b0d64 into SBC-Utrecht:main Nov 10, 2023
@McHaillet McHaillet deleted the patch-radial-average-speed branch November 10, 2023 13:07
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