From 2ea41247318e7801e73dc8bbd3893dfaab964a45 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Tue, 21 Nov 2023 10:23:27 -0500 Subject: [PATCH] use np.allclose --- autotest/test_plotutil.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/autotest/test_plotutil.py b/autotest/test_plotutil.py index 0624abf926..7e5a5532c5 100644 --- a/autotest/test_plotutil.py +++ b/autotest/test_plotutil.py @@ -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)