Skip to content

Conversation

@sroet
Copy link
Member

@sroet sroet commented Feb 14, 2021

With the release of numpy 1.20 came a couple DeprecationWarnings, mainly about np.float or np.bool just being an alias for the python internal. The one Warning that is left (in my test setup) comes from openmmtools and is handled in choderalab/openmmtools#497

@codecov
Copy link

codecov bot commented Feb 14, 2021

Codecov Report

Merging #974 (40f92ae) into master (767d358) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #974   +/-   ##
=======================================
  Coverage   80.25%   80.25%           
=======================================
  Files         136      136           
  Lines       14449    14449           
=======================================
  Hits        11596    11596           
  Misses       2853     2853           
Impacted Files Coverage Δ
openpathsampling/netcdfplus/netcdfplus.py 75.00% <100.00%> (ø)

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 767d358...8cf7b71. Read the comment docs.

@dwhswenson
Copy link
Member

dwhswenson commented Feb 16, 2021

Huh... Release notes on this say (emphasis mine):

For a long time, np.int has been an alias of the builtin int.

I'm pretty sure I distinctly remember my confusion when:

>>> np.True is True
False

(Edit: maybe not that exact syntax, but that was the problem -- testing against is True.)

I must be getting old.

LGTM.

@dwhswenson dwhswenson merged commit 19318c4 into openpathsampling:master Feb 16, 2021
@sroet sroet deleted the handle_np_120_dep_warnings branch February 16, 2021 10:32
@dwhswenson dwhswenson mentioned this pull request Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants