Global variables are not shared with executors when run with multiprocessing #1
Open
Description
When running it in MacOS, the multiprocessing module doesn't work as it would be expected in Linux, where the executors inherit the global variables from the parent process. But instead they appear as None, which makes the program to crash. A way to avoid the problem is to configure the OncodriveFML class to avoid parallel by setting the self.avoid_parallel = True
in the constructor, and then it runs successfully.
The solution will require to eliminate all the global variables that are needed by the executors, and pass them to every executor explicitly as parameters.
Metadata
Assignees
Labels
No labels