-
Notifications
You must be signed in to change notification settings - Fork 102
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
Explicit phase offset as a fittable parameter #1557
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1557 +/- ##
==========================================
+ Coverage 67.96% 68.01% +0.05%
==========================================
Files 97 98 +1
Lines 22538 22557 +19
Branches 3866 3866
==========================================
+ Hits 15317 15343 +26
+ Misses 6274 6268 -6
+ Partials 947 946 -1
☔ View full report in Codecov by Sentry. |
I didn't think TZRMJD was ever a fittable parameter. Is it? |
Maybe in the doc paragraph you can say that once you have a non-zero PHOFF, you can make it zero by computing d_phase/d_TOA at the time of the TZR TOA and turning that into a time difference required to zero out the PHOFF? I assume that is how TEMPO and Tempo2 output their updated TZR TOAs after a fit? |
This is not possible since TZRMJD is not a fittable parameter.
Added tests for these. |
@dlakaplan Added the example |
The example looks great. Probably that's sufficient. I don't know if we also want a few lines in the docstring for |
The process of adding the explicit offset is pretty much the same as any other component/parameter. i.e., add |
Probably not. so maybe just a link to the example in the docstring. |
OK, great. I can merge as soon as it passes (note it seems like there are GitHub errors) |
This PR implements a
PhaseOffset
component that applies an overall phase offset (PHOFF
) between physical TOAs and the TZR TOA. This works by using a new attributetzr
in theTOAs
class that distinguishes between physical and TZR TOAs.The sign of
PHOFF
is set to be the same as that of the implicitOffset
. The design matrix entries forPHOFF
andOffset
should be identical.If the
PhaseOffset
component is present in the timing model, implicit offset (Offset
) will not be included in the design matrix and the correlation matrix, and the mean will not be subtracted from the residuals.See issues #38 and #431 and PR #443.
#1550 was an attempt to do this that didn't work.