Skip to content

Overly general logic for pulsar distance priors #13

@bencebecsy

Description

@bencebecsy

Sarah Burke-Spolaor raised this. In QuickCW.per_pulsar_prior, we check for DM distance first and only after look for PX. In reality PX is superior, so we should use that if we have it.

However, this logic is already applied when putting together the dictionary with pulsar distances. So if a pulsar has parallax we do not even bother putting DM information in that dict. And the dictionary itself has a 3-element list for each pulsar, like this: [mean, error, method_flag], such that method_flag is PX if we have parallax information, and DM if not. So the current code is actually a bit too generic. It shouldn't really look for DM and PX anywhere in that list. It should just check if the third element is DM or if it is PX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions