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

Warnings tests #937

Merged
merged 12 commits into from
Feb 16, 2024
Merged

Warnings tests #937

merged 12 commits into from
Feb 16, 2024

Conversation

steven-murray
Copy link
Contributor

@steven-murray steven-murray commented Feb 8, 2024

This PR adds a test that fails if warnings are emitted. We needn't enforce this check to pass on PRs, but it will warn us more clearly when there are deprecations etc.

I've fixed as many warnings as I could. This was quite a pain. I definitely recommend that someone with a bit more hera-cal knowledge go through and check that the warnings I'm silencing are appropriate. Sometimes I might be silencing something that shouldn't be.

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (be00ed9) 97.15% compared to head (112285a) 97.12%.

Files Patch % Lines
hera_cal/io.py 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #937      +/-   ##
==========================================
- Coverage   97.15%   97.12%   -0.04%     
==========================================
  Files          23       23              
  Lines       10692    10709      +17     
==========================================
+ Hits        10388    10401      +13     
- Misses        304      308       +4     
Flag Coverage Δ
unittests 97.12% <98.41%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@steven-murray steven-murray marked this pull request as ready for review February 15, 2024 16:52
Copy link
Member

@jsdillon jsdillon left a comment

Choose a reason for hiding this comment

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

Just a couple of questions, but basically looks good.

hera_cal/abscal.py Show resolved Hide resolved
hera_cal/io.py Show resolved Hide resolved
hera_cal/io.py Show resolved Hide resolved
hera_cal/tests/test_abscal.py Show resolved Hide resolved
@jsdillon jsdillon merged commit de4d678 into main Feb 16, 2024
9 of 11 checks passed
@jsdillon jsdillon deleted the warnings-tests branch February 16, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants