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

Fix crossspectrum all default #762

Merged
merged 5 commits into from Oct 5, 2023
Merged

Conversation

matteobachetti
Copy link
Member

For some reason, in Crossspectrum the power type remained "real", which also meant that, by default, the lags measured by Crossspectrum were all wrong.

@codecov
Copy link

codecov bot commented Oct 1, 2023

Codecov Report

Merging #762 (5324211) into main (34e6a94) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #762   +/-   ##
=======================================
  Coverage   97.29%   97.29%           
=======================================
  Files          43       43           
  Lines        7918     7918           
=======================================
  Hits         7704     7704           
  Misses        214      214           
Files Coverage Δ
stingray/crossspectrum.py 99.00% <ø> (ø)
stingray/modeling/gpmodeling.py 95.78% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@mgullik mgullik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @matteobachetti,

this is a good catch.
Only one thing, you swapped the order of the two lightcurves in Crossspectrum tests, why?

@matteobachetti
Copy link
Member Author

They were set up before our change if convention, and we didn't realize it was a mistake because the test was wrong (the cross spectrum was real-valued) 😅

@matteobachetti matteobachetti added this pull request to the merge queue Oct 5, 2023
Merged via the queue into main with commit 0f746f6 Oct 5, 2023
15 checks passed
@matteobachetti matteobachetti deleted the fix_crossspectrum_all_default branch January 29, 2024 20:19
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.

None yet

2 participants