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

WIP: Alow model_singlepsr_noise to work with .tim TOA files that contain no pta/f flags #227

Open mattpitkin opened 8 months ago

mattpitkin commented 8 months ago

Currently, if trying to use model_singlepsr_noise with a Pulsar that was created from a .tim file that contains no pta or f flag (e.g., something simulated by Tempo2) it will fail. This PR fixes this by using the get dictionary method with a default empty string being returned.

mattpitkin commented 8 months ago

I've discovered that this breaks things due to the enterprise BasePulsar class' backend_flags property required a flag of some sort to be set. So, I might need to suggest a change there too.