Skip to content

Commit

Permalink
use np.allclose
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Nov 21, 2023
1 parent 61b66d9 commit 88b9584
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions autotest/test_plotutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,4 @@ def test_to_prt_pathlines_roundtrip():
prt_pls.drop(
["imdl", "iprp", "name", "istatus", "ireason"], axis=1, inplace=True
)
inp_pls[inp_pls.select_dtypes(np.float64).columns] = inp_pls.select_dtypes(
np.float64
).astype(np.float32)
inp_pls[inp_pls.select_dtypes(np.int64).columns] = inp_pls.select_dtypes(
np.int64
).astype(np.int32)
assert np.array_equal(inp_pls, prt_pls)
assert np.allclose(inp_pls, prt_pls)

0 comments on commit 88b9584

Please sign in to comment.