katerinakazantseva / strainy

Graph-based assembly phasing
Other
65 stars 5 forks source link

Use `spawn` to create processes on Mac #34

Closed mikolmogorov closed 1 year ago

mikolmogorov commented 1 year ago

We are currently forcing fork start method in metaphase.py: multiprocessing.set_start_method("fork").

This was originally done so that all processes inheirit global class object with arguments at params.py. But there should be better way to do that.

Using fork on Mac breaks some visualization things, like matplotlib or graphviz backends.

mikolmogorov commented 1 year ago

Fixed in 5d8357d