morrislab / pairtree

Pairtree is a method for reconstructing cancer evolutionary history in individual patients, and analyzing intratumor genetic heterogeneity. Pairtree focuses on scaling to many more cancer samples and cancer cell subpopulations than other algorithms, and on producing concise and informative interactive characterizations of posterior uncertainty.
MIT License
37 stars 11 forks source link

Updating multiprocessing.set_start_method() function calls #28

Closed ethanumn closed 2 years ago

ethanumn commented 2 years ago

Obtaining error on MacOS from the call multiprocessing.set_start_method() stating that the context has already been set.

Solution is to add the argument force=True to the multiprocessing.set_start_method().

Added condition to only call multiprocessing.set_start_method() when the OS is MacOS.

Verified everything still works properly on MacOS and Linux.