Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add nonlinear timing model #240

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

davecwright3
Copy link

@davecwright3 davecwright3 commented Aug 20, 2024

This is a rework of #187.

I went through the commit history and pulled out any changes that weren't linting, updates from dev, etc (via https://github.com/Wilfred/difftastic AST diffs). The code is passing all tests locally, and the example notebook is producing output matching what @Hazboun6 had in the original PR.

This PR also includes documentation to go along with the new features.

Hazboun6 and others added 2 commits August 20, 2024 12:07
Adds new prior methods useful for nonlinear timing to timing.py

Co-authored-by: Andrew Kaiser <[email protected]>
@davecwright3
Copy link
Author

davecwright3 commented Aug 20, 2024

I broke down the monolithic commits into smaller, more logical commits. Also rebased onto master to include flake8 change.

Hazboun6 and others added 9 commits August 20, 2024 13:21
Updates tm_delay and timing_block with nonlinear timing. Also adds
dm_block and other supporting methods.

Co-authored-by: Andrew Kaiser <[email protected]>
Adds new functionality for nonlinear timing, including specific jump
proposals and restrictions to pulsar mass.

Co-authored-by: Andrew Kaiser <[email protected]>
Adds nonlinear timing model to single pulsar noise model.

Co-authored-by: Andrew Kaiser <[email protected]>
Adds nonlinear timing model to model_general.

Co-authored-by: Andrew Kaiser <[email protected]>
@davecwright3
Copy link
Author

GH actions tests are failing because SciPy likes to make breaking changes on minor version increases. We should either pin SciPy or change the methods we call from SciPy.

SciPy has deprecated interp2d used in the 2D KDE method.
Their suggested backwards compatible method is not actually backwards
compatible because it doesn't expose the same arguments to users, like
the fill value outside of the domain. The suggested new methods take
different inputs, so it is unclear if they will work with the empirical
distribution code. This needs to be further tested before changing interp2d.
@davecwright3 davecwright3 changed the title feat(nonlinear timing model): add nonlinear timing model feat: add nonlinear timing model Aug 20, 2024
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.

2 participants