Skip to content

Try to ensure we get fewer deprecationwarnings from comparisons.#8755

Merged
pllim merged 2 commits intoastropy:masterfrom
mhvk:quantity-comparison-never-fail
May 24, 2019
Merged

Try to ensure we get fewer deprecationwarnings from comparisons.#8755
pllim merged 2 commits intoastropy:masterfrom
mhvk:quantity-comparison-never-fail

Conversation

@mhvk
Copy link
Contributor

@mhvk mhvk commented May 24, 2019

It is all a bit tricky to get right, but the extra tests should help. @pllim - is it useful to explicitly ensure we don't get DeprecationWarning, as I do here? Or shall we leave that to your PR?

fixes #8752

@mhvk mhvk added this to the v3.2.1 milestone May 24, 2019
@pllim
Copy link
Member

pllim commented May 24, 2019

@mhvk , catching all the warnings is not critical, so we can defer to a follow-up PR if needed. Thanks for the quick fix!

Copy link
Member

@pllim pllim left a comment

Choose a reason for hiding this comment

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

LGTM

@pllim pllim added the zzz 💤 merge-when-ci-passes Do not use: We have auto-merge option now. label May 24, 2019
@codecov
Copy link

codecov bot commented May 24, 2019

Codecov Report

Merging #8755 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8755      +/-   ##
==========================================
- Coverage   86.97%   86.97%   -0.01%     
==========================================
  Files         399      399              
  Lines       59384    59382       -2     
  Branches     1100     1100              
==========================================
- Hits        51652    51648       -4     
- Misses       7091     7093       +2     
  Partials      641      641
Impacted Files Coverage Δ
astropy/units/quantity.py 93.51% <100%> (-0.03%) ⬇️
astropy/utils/data.py 80.93% <0%> (-0.45%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33962dd...e6b70e0. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented May 24, 2019

Codecov Report

Merging #8755 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8755      +/-   ##
==========================================
- Coverage   86.97%   86.97%   -0.01%     
==========================================
  Files         399      399              
  Lines       59384    59382       -2     
  Branches     1100     1100              
==========================================
- Hits        51652    51648       -4     
- Misses       7091     7093       +2     
  Partials      641      641
Impacted Files Coverage Δ
astropy/units/quantity.py 93.51% <100%> (-0.03%) ⬇️
astropy/utils/data.py 80.93% <0%> (-0.45%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33962dd...e6b70e0. Read the comment docs.

@pllim pllim merged commit 51db6a6 into astropy:master May 24, 2019
@mhvk mhvk deleted the quantity-comparison-never-fail branch May 24, 2019 19:14
@bsipocz bsipocz modified the milestones: v3.2.1, v3.2 May 24, 2019
bsipocz pushed a commit that referenced this pull request May 27, 2019
Try to ensure we get fewer deprecationwarnings from comparisons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactoring units zzz 💤 merge-when-ci-passes Do not use: We have auto-merge option now.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeprecationWarning: elementwise comparison failed in Quantity

3 participants