Skip to content

sampler prior draw checks#237

Open
astrolamb wants to merge 3 commits into
nanograv:masterfrom
astrolamb:main
Open

sampler prior draw checks#237
astrolamb wants to merge 3 commits into
nanograv:masterfrom
astrolamb:main

Conversation

@astrolamb
Copy link
Copy Markdown
Collaborator

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