Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming conflict in Introduction to Modeling in Gen.ipynb section 5. Calling other generative functions #42

Open
fplk opened this issue Mar 11, 2020 · 0 comments

Comments

@fplk
Copy link
Contributor

fplk commented Mar 11, 2020

The function declaration

@gen function bar()
    @trace(bernoulli(0.5), :x)
    @trace(foo())
end

clashes with PyPlot.bar imported earlier. When running the notebook in sequence this will result in the error

cannot assign a value to variable PyPlot.bar from module Main

Any renaming of the function to a name that is not yet taken should solve this issue (tested with name bar2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant