Skip to content

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

Draft
mattpitkin wants to merge 1 commit intonanograv:masterfrom
mattpitkin:non_pta
Draft

WIP: Alow model_singlepsr_noise to work with .tim TOA files that contain no pta/f flags#227
mattpitkin wants to merge 1 commit intonanograv:masterfrom
mattpitkin:non_pta

Conversation

@mattpitkin
Copy link
Copy Markdown

@mattpitkin mattpitkin commented Mar 6, 2024

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
Copy link
Copy Markdown
Author

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.

@mattpitkin mattpitkin changed the title Alow model_singlepsr_noise to work with .tim TOA files that contain no pta/f flags WIP: Alow model_singlepsr_noise to work with .tim TOA files that contain no pta/f flags Mar 6, 2024
@mattpitkin mattpitkin marked this pull request as draft March 6, 2024 21:27
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