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

sampler prior draw checks #237

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

astrolamb
Copy link
Contributor

We found an issue in the prior draw additions in setup_sampler .

If we include constant red noise models, then line 1168 would think that there's red noise to be drawn from and include a list of priors to draw from. This results in an error because the list is empty.

I've added an extra check in each if statement to see if the list is not empty

Found with @levischult and @stevertaylor

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

Successfully merging this pull request may close these issues.

1 participant