Skip to content

Conversation

@meyers-academic
Copy link
Collaborator

This changes makecommongp_fourier to take different Tspans for different pulsars, and thus creating different bases for different pulsars. The basis for each pulsar must still be the same size.

I have also added unit tests, making sure applying this to two pulsars, and running Phi.getN gives equivalent results to running Phi.getN on makegp_fourier for the two pulsars separately. There are a few more tests as well.

meyers-academic and others added 2 commits December 14, 2024 14:13
    size). Add tests associated with it. Fix test in
`test_likelihood.py`

fs, dfs, fmats = zip(*[fourierbasis(psr, components, T) for psr in psrs])
f, df = fs[0], dfs[0]
if isinstance(T, Iterable):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume these if statements are ok because they will get evaluated once when compiled?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check that len(T) == len(psrs)

@meyers-academic
Copy link
Collaborator Author

@vallis same thing with this PR as well, I think this one should be good to go.

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