nanograv / enterprise_extensions

A set of extension codes, utilities, and scripts for the enterprise PTA analysis framework.
MIT License
26 stars 59 forks source link

sampler prior draw checks #237

Open astrolamb opened 2 months ago

astrolamb commented 2 months ago

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