nanograv / enterprise_extensions

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

adding constant power law signal #206

Open astrolamb opened 1 year ago

astrolamb commented 1 year ago

https://github.com/nanograv/enterprise_extensions/blob/a46be211cc9740a3ad6a45dd9d488864d32ca83b/enterprise_extensions/sampler.py#L1159

For the continuous waves project, folks sometimes add a constant common red noise signal (i.e. a powerlaw with fixed log10A and gamma). Therefore, a 'red noise' object is found in the PTA, however, there is nothing to sample from this signal. Because of this, this line adds red noise prior draws, but there are no red noise parameters to resample from, causing an error.

To fix: check that the dictionary isn't referencing an empty list