create_physicsmodel() multiprocessing failure
I ran into an error when trying to use multiple cores with beast.tools.run.create_physicsmodel.create_physicsmodel(beast_settings_info=settings_path, nprocs=10, nsubs=2)
AttributeError: Can't get local object 'create_physicsmodel.
I think what's happening is that the gen_subgrid function is not pickle-able as it is defined within the create_physicsmodel function.
Note that everything runs properly when not multiprocessing (nprocs=1).
Thanks!
Not sure anyone has attempted to run the BEAST using multiple cores before. I could be wrong and look forward to info if someone else has.
Yes, the physicsmodel not being pickle-able would be an issue. Not sure how easy it would be to modify the physics model to be pickle-able.