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

Parallelize sphere-fitted curvature computation #41

Open
haesleinhuepf opened this issue Feb 4, 2023 · 1 comment
Open

Parallelize sphere-fitted curvature computation #41

haesleinhuepf opened this issue Feb 4, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@haesleinhuepf
Copy link
Owner

It should be possible to parallelize the computation of the sphere-fitted curvature by parallelizing this for loop:

Hints:

@haesleinhuepf haesleinhuepf added enhancement New feature or request good first issue Good for newcomers labels Feb 5, 2023
@jo-mueller
Copy link
Collaborator

Hi @haesleinhuepf ,

I played around with this in another context and I think joblib parallelization could do the trick. The syntax is also quick simple:

from joblib import Parallel, delayed

list_of_results = Parallel(n_jobs=-1)(delayed(function_to_parallelize)(arg for arg in list_of_arguments))

will try to put it in a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants