Skip to content

Error when using MCMCEnsemble on models containing Module types #89

@cpfiffer

Description

@cpfiffer

Originally detected in HighDimensionalEconLab/HMCExamples.jl#28.

Essentially, we generate a Module and use that as a pseudo-function struct, but its inclusion in the model means that the model deepcopy

models = [deepcopy(model) for _ in interval]

fails as Module cannot be deepcopied. Unfortunately it's a little tricky to detect this kind of weird case in advance. Perhaps it would be nice to add keywords disabling any of the deepcopy calls for users who don't mind so much?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions