gwastro / pycbc

Core package to analyze gravitational-wave data, find signals, and study their parameters. This package was used in the first direct detection of gravitational waves (GW150914), and is used in the ongoing analysis of LIGO/Virgo data.
http://pycbc.org
GNU General Public License v3.0
314 stars 348 forks source link

Don't force global multiprocessing start method #4890

Closed ahnitz closed 1 week ago

ahnitz commented 1 week ago

Standard information about the request

This is a: bug fix

This change affects library useage of pycbc within a setting where the multiprocessing start context is already set. We currently force a setting of "fork" which doesn't work in some cases and may not be what someone wants for all uses.

Any executable and library code which relies on multiprocessing. In these cases, the correction recommended by @xkzl is used.

This change will ideally have no effect on current usage.

Links to any issues or associated PRs

Error reported in https://github.com/gwastro/pycbc/issues/4853

Testing performed

Additional notes