From d2eca60a60898f02a81c36d0fac38114af24da01 Mon Sep 17 00:00:00 2001 From: Adam Paquette <acp263@nau.edu> Date: Wed, 2 May 2018 23:22:23 -0700 Subject: [PATCH] Reverted save_gpf testing to numpy array almost equals --- plio/io/tests/test_io_bae.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plio/io/tests/test_io_bae.py b/plio/io/tests/test_io_bae.py index 0059a2c..2817c88 100644 --- a/plio/io/tests/test_io_bae.py +++ b/plio/io/tests/test_io_bae.py @@ -61,7 +61,7 @@ def test_write_ipf(ipf, file): test_arr = np.hstack(np.array(test_arr)) test_arr = test_arr.reshape(-1, 12) - assert (truth_arr==test_arr).all() + assert (truth_arr == test_arr).all() @pytest.mark.parametrize('gpf, file', [(insight_gpf(), 'out.gpf')]) def test_write_gpf(gpf, file): @@ -85,7 +85,7 @@ def test_write_gpf(gpf, file): truth_arr = np.genfromtxt(gpf, skip_header=3) test_arr = np.genfromtxt(file, skip_header=3) - assert (truth_arr==test_arr).all() + np.testing.assert_array_almost_equal(truth_arr, test_arr) # np.testing.assert_array_almost_equal(truth_arr, test_arr) -- GitLab