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..gen_subgrid'
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!