Skip to content

Commit 3e4c224

Browse files
committed
Corrections to test checks
1 parent 4d8d7a7 commit 3e4c224

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/unit_tests/test_mesh.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,12 +564,13 @@ def test_write_vtkhdf(request):
564564
assert num_elements == umesh_from_sp.n_elements
565565

566566
num_vertices = reader.GetOutput().GetNumberOfPoints()
567-
assert num_vertices == umesh_from_sp.n_vertices
567+
assert num_vertices == umesh_from_sp.vertices.shape[0]
568568

569569
arr = reader.GetOutput().GetCellData().GetArray("mean")
570570
mean = np.array([arr.GetTuple1(i) for i in range(my_tally.mean.size)])
571571
np.testing.assert_almost_equal(mean, my_tally.mean.flatten()/umesh_from_sp.volumes)
572572

573+
arr = reader.GetOutput().GetCellData().GetArray("std_dev")
573574
std_dev = np.array([arr.GetTuple1(i) for i in range(my_tally.std_dev.size)])
574575
np.testing.assert_almost_equal(std_dev, my_tally.std_dev.flatten()/umesh_from_sp.volumes)
575576

0 commit comments

Comments
 (0)