Skip to content
Snippets Groups Projects
Commit d2eca60a authored by Adam Paquette's avatar Adam Paquette
Browse files

Reverted save_gpf testing to numpy array almost equals

parent e7e6b14f
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ def test_write_ipf(ipf, file): ...@@ -61,7 +61,7 @@ def test_write_ipf(ipf, file):
test_arr = np.hstack(np.array(test_arr)) test_arr = np.hstack(np.array(test_arr))
test_arr = test_arr.reshape(-1, 12) 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')]) @pytest.mark.parametrize('gpf, file', [(insight_gpf(), 'out.gpf')])
def test_write_gpf(gpf, file): def test_write_gpf(gpf, file):
...@@ -85,7 +85,7 @@ def test_write_gpf(gpf, file): ...@@ -85,7 +85,7 @@ def test_write_gpf(gpf, file):
truth_arr = np.genfromtxt(gpf, skip_header=3) truth_arr = np.genfromtxt(gpf, skip_header=3)
test_arr = np.genfromtxt(file, 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) # np.testing.assert_array_almost_equal(truth_arr, test_arr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment