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

refactoring of the utils_python.minimization function to enable keyboa… #38

Merged

Conversation

erikbrorson
Copy link
Contributor

Some refactoring of the utils.python_utils.minimization to enable the interruptions of the multiprocessing.

Change:

added two new utility functions:

  • cleaned up the logic to pick the number of processes to use and put it in the private function _get_number_processes
  • added a function that uses pathos_mp.ProcessingPool as a context manager to handle exceptions
  • wrapped the call to _take_global_optimisation_step to catch any keyboard interrupts.

@rajeshrinet rajeshrinet merged commit c694500 into rajeshrinet:master Nov 2, 2020
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.

None yet

3 participants