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] peakfit: limit multiprocessing to 2 processes during fitting to avoid crashes #748

Merged

Conversation

stuart-cls
Copy link
Member

@stuart-cls stuart-cls commented Sep 25, 2024

Fixes #743

Can be overridden with new env var QUASAR_N_PROCESSES=all

Documented in the widget documentation. We can move it later if we use it more places.

I was going to add tests* but it seems unittest always gives you cpu_count()==1 (so that part works at least) and mocking environment variables in unittest is annoying.

Edit: I did test the permutations on a large multicore machine

…uasars#743)

Can be overridden with new env var QUASAR_N_PROCESSES=all
@markotoplak markotoplak changed the title [FIX] peakfit: Limit multiprocessing to 2 processes during fitting [FIX] peakfit: limit multiprocessing to 2 processes during fitting to avoid crashes Sep 26, 2024
@markotoplak markotoplak merged commit 670735c into Quasars:master Sep 26, 2024
6 of 14 checks passed
@stuart-cls stuart-cls deleted the peakfit-multiprocessing-cpucount branch September 27, 2024 21:15
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.

Peakfit: Some computers start more processes than available memory (was "crashing on Windows")
2 participants