Skip to content

create_physicsmodel() multiprocessing failure #840

@benjamin-gibson

Description

@benjamin-gibson

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions