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

timing.py sign error #161

Open
SixByNine opened this issue Jan 20, 2022 · 1 comment
Open

timing.py sign error #161

SixByNine opened this issue Jan 20, 2022 · 1 comment

Comments

@SixByNine
Copy link

Investigations within the EPTA (Siyuan, Aurelien, Stas and myself) suggest that the sign of the return from tm_delay() in timing.py is incorrect.

This is because a signal_base.function should return the "positive" function that is being fit, rather than a correction to be applied to the residuals. This means that the corrected residual should be given by:

newres = residuals - retval

which implies that

retval = residuals - newres

and so return new_res - residuals on line 47 should be return residuals - new_res.

This has been verified by testing against pulsars with known parameter offsets.

@AaronDJohnson
Copy link
Collaborator

Has this been resolved @SixByNine ?

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

No branches or pull requests

2 participants