Skip to content

filter_psr() fails if filter_dict=None #11

@paulthebaker

Description

@paulthebaker

Setting filter_dict=None should be a valid use case to run a frequency filter, but no flag filters. It might be worth changing the name of filter_dict to flag_filter or similar.

Currently, the function starts with flag_keep = [] and if filter_dict=None this is never updated and no TOAs are kept.

Workaround is pass a filter that all toas will pass:

filter_dict={'pta':['NANOGrav', 'PPTA', 'EPTA']}

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