Skip to content

Commit

Permalink
Use np.float64 instead of the deprecated np.float. (#794)
Browse files Browse the repository at this point in the history
Fixes #789
  • Loading branch information
molpopgen committed Jul 4, 2021
1 parent 39c78b7 commit 46ed3ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions doc/misc/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Bug fixes
Issue {issue}`792`.
Fixed in PR {pr}`793`.

Minor changes

* Remove use of deprecated `numpy` `dtype` in tests.
Issue {issue}`789`.
Fixed in PR {pr}`794`

## 0.15.1

Point release
Expand Down
6 changes: 3 additions & 3 deletions tests/test_metadata_encoding_with_tskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@

np.random.seed(54321)

MOCK_NODE_TABLE_DTYPE = [("time", np.float), ("deme", np.int32)]
MOCK_NODE_TABLE_DTYPE = [("time", np.float64), ("deme", np.int32)]
MOCK_EDGE_TABLE_DTYPE = [
("left", np.float),
("right", np.float),
("left", np.float64),
("right", np.float64),
("parent", np.int32),
("child", np.int32),
]
Expand Down

0 comments on commit 46ed3ed

Please sign in to comment.