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 fit_scan_sequence #46

Open
dschick opened this issue Feb 23, 2022 · 1 comment
Open

parallelize fit_scan_sequence #46

dschick opened this issue Feb 23, 2022 · 1 comment

Comments

@dschick
Copy link
Owner

dschick commented Feb 23, 2022

fit_scan_sequence() can take rather long calculational times which is why, parallelization might be worth thinkt of here, in case the iterations are independent from each other.

@dschick
Copy link
Owner Author

dschick commented Feb 24, 2022

it could be possible to use multiprocessing for it, e.g. with a minimal example such as:

with Pool(2*cpu_count()-1) as pool:
    out = pool.starmap(parallel_fitting, (data))
    pool.close()
    pool.join()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant