Skip to content

feat: add nonlinear timing model#240

Open
davecwright3 wants to merge 12 commits intonanograv:masterfrom
davecwright3:feat/nonlinear-timing
Open

feat: add nonlinear timing model#240
davecwright3 wants to merge 12 commits intonanograv:masterfrom
davecwright3:feat/nonlinear-timing

Conversation

@davecwright3
Copy link
Copy Markdown

@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.

@davecwright3 davecwright3 force-pushed the feat/nonlinear-timing branch 2 times, most recently from fd0d103 to f70023b Compare August 20, 2024 19:07
@davecwright3
Copy link
Copy Markdown
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.

@davecwright3 davecwright3 force-pushed the feat/nonlinear-timing branch from f70023b to 291b6ca Compare August 20, 2024 20:22
@davecwright3
Copy link
Copy Markdown
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.

@davecwright3 davecwright3 changed the title feat(nonlinear timing model): add nonlinear timing model feat: add nonlinear timing model Aug 20, 2024
Hazboun6 and others added 12 commits January 16, 2025 12:42
Adds new prior methods useful for nonlinear timing to timing.py

Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
Updates tm_delay and timing_block with nonlinear timing. Also adds
dm_block and other supporting methods.

Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
Adds new functionality for nonlinear timing, including specific jump
proposals and restrictions to pulsar mass.

Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
Adds nonlinear timing model to single pulsar noise model.

Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
Adds nonlinear timing model to model_general.

Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
Co-authored-by: Andrew Kaiser <ark0015@mix.wvu.edu>
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 force-pushed the feat/nonlinear-timing branch from bdbe656 to 06bd8e4 Compare January 16, 2025 20:43
@vhaasteren
Copy link
Copy Markdown
Member

Hi @davecwright3 ,

If you make your PR depend on #248 then the tests will probably run

@vhaasteren
Copy link
Copy Markdown
Member

Hah, what I realize now: that particular PR I reference of course makes it so that potentially libstempo is not installed. And that's the whole point of the PR here.

The irony...

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.

3 participants