Skip to content

NestedSampling: make mc_walker optional or change the way workers are set up #23

@smcantab

Description

@smcantab

When using the distributed parallelisation we build an mc_walker for each worker but are then also required to pass the mcwalker to the NestedSampling class. This particular instance of the mc_walker will not be used, because it is up to the workers to do the MCMC.

I find it confusing that the nested sampling object takes something that it doesn't need. So we could either make the mc_walker an optional parameter or we could pass the mc_walker to the workers from the master. Although dependency injection in this case would be more elegant, this solution is more cumbersome to implement and we would have to deal with making the mc_walker pickable.

@js850 any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions