Skip to content

Rename chains to chn #64

@rikhuijzer

Description

@rikhuijzer

In the scripts, the variable chains is used all over the place. Unfortunately, chains is also exported by MCMCChains, which can cause issues like

julia> chains = sample(model(a, b), NUTS(0.65), 1000)
ERROR: invalid redefinition of constant chains

Thanks to David Widmann for figuring this out (TuringLang/Turing.jl#1529).

To solve this issue, and avoid problems in the future for us and for users, we would be better of renaming the variables to chn or chns or something.

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