Skip to content
Snippets Groups Projects

HeterodynedPulsarModel.c: fix frequency updates to new epoch

Open Matthew Pitkin requested to merge matthew-pitkin/lalsuite:phase_diff_fix into master

Detailed Description

In the XLALHeterodynedPulsarPhaseDifference function in HeterodynedPulsarModel.c, if the two sets of phase evolution parameters for the the difference is being calculated have different period epochs (the PEPOCH parameter), it attempts to update the frequencies to be at the same epoch. There are a couple of bugs in this that are fixed in this MR:

  • the time difference for higher order terms (higher than F1) got raised to an additional power for each term;
  • the stored epoch value never got updated correctly.

This MR is quasi-related to !2451 (merged) in that it's in the same part of the code and was found when investigating that issue. This function is currently only used via CWInPy, and a test if the correctness is being included in cwinpy/cwinpy!200 (merged).

API Changes

Please tick one of the following options:

  • These changes do not modify the API.
  • These changes do modify the API, and are backwards compatible.
  • These changes do modify the API, and are backwards incompatible.

For examples of changes that do not modify the API and/or are considered backwards (in)compatible, please see the contributing guide.

Justification for Backwards Incompatible Changes

Review Status

cc @david-keitel @karl-wette

Merge request reports

Members who can merge are allowed to add commits.

Merged results pipeline #720715 failed

Merged results pipeline failed for 8a318c10

Approval is optional

Set by to be merged automatically when the pipeline succeeds

Ready to merge by members who can write to the target branch.

Merge details

  • The source branch is 28 commits behind the target branch.
  • 3 commits and 1 merge commit will be added to master.
  • Source branch will be deleted.
  • Auto-merge enabled

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading