StingraySoftware / stingray

Anything can happen in the next half hour (including spectral timing made easy)!
https://stingray.science/stingray
MIT License
172 stars 141 forks source link

Fix accelsearch #807

Closed matteobachetti closed 6 months ago

matteobachetti commented 6 months ago

In accelsearch, empty intervals are approximated with the mean of the data. If the estimate of nphots was done after this, nphots became unreasonably high, leading to very low values of power This simple fix restores a decent calculations of nphots

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.41%. Comparing base (589a204) to head (51b5ffe).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #807 +/- ## ======================================= Coverage 96.41% 96.41% ======================================= Files 45 45 Lines 8988 8989 +1 ======================================= + Hits 8666 8667 +1 Misses 322 322 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.