-
Notifications
You must be signed in to change notification settings - Fork 176
fix test_lightcurve fails #886
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 test_lightcurve fails #886
Conversation
stingray/tests/test_lightcurve.py
Outdated
| assert_allclose(lk.flux, counts) | ||
| assert_allclose(lk.flux_err, counts_err) | ||
| with warnings.catch_warnings(): | ||
| warnings.filterwarnings("ignore", category=DeprecationWarning) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also mention that what Warning message we are getting.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #886 +/- ##
===========================================
- Coverage 96.03% 46.50% -49.53%
===========================================
Files 48 48
Lines 9770 9768 -2
===========================================
- Hits 9383 4543 -4840
- Misses 387 5225 +4838 ☔ View full report in Codecov by Sentry. |
|
@aDNAn-itis there is a better way to ignore warnings from tests. There is a dedicated section in the pyproject.toml |
…/stingray into test_lightcurve-fails
|
@matteobachetti done! |
suppress deprecation warnings
#882 (comment)
fixes #882