Issue in QPO phase lag function implementation

Open
#702 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start at spectroscopy.py around line 375 and compare the implemented phase-lag equation with the cited Ingram 2015 and 2016 papers. Reproduce the reported waveform difference for the two formulas, then seek maintainer clarification on which interpretation is intended. Done means the implementation decision is resolved and the issue's requested behavior is clearly recorded.

Written by the indexing model from the issue text.

Description

I was reading up the paper Ingram 2016, where the formula for finding the phase offsets of the first two harmonics of a QPO (for some energy band E), was given as:
$\phi_1 (E) = \phi_1+ \Delta_1(E)$ ,
$\phi_2 (E) = 2(\phi_1 + \psi) + \Delta_2(E)$ ,
In our implementation in stingray, we are using a different formulae which replaces the second equation with $\phi_2 (E) = 2(\phi_1 (E) + \psi) + \Delta_2(E)$ ,
this was the equation given in the paper Ingram 2015 , but it is claimed in Ingram 2016 (page 4), that there is a mistake in the Ingram 2015 paper's equation.

@matteobachetti , @dhuppenkothen, please look into it and clarify if it is an error or a deliberate implementation decision.

This is implemented in spectroscopy.py. I have tested the code for the new equation and it produces significantly different waveforms than the current implementation.

Dominant language
Python
Stars
229
Forks
196
Avg merge
4d 12h
Merged PRs (30d)
20

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from StingraySoftware/stingray

All issues in StingraySoftware/stingray

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.