From 48d75accdd3d8ddd80e560c56b64a49e3c7b21dd Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Tue, 11 Oct 2022 17:12:55 +0000 Subject: [PATCH] fixed cylindrical mesh test --- tests/unit_tests/test_cylindrical_mesh.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit_tests/test_cylindrical_mesh.py b/tests/unit_tests/test_cylindrical_mesh.py index 89322d7045..952e8cf5a2 100644 --- a/tests/unit_tests/test_cylindrical_mesh.py +++ b/tests/unit_tests/test_cylindrical_mesh.py @@ -1,8 +1,8 @@ import openmc import numpy as np -def test_centre_read_write_to_xml(): - """Tests that the centre attribute can be written and read back to XML +def test_origin_read_write_to_xml(): + """Tests that the origin attribute can be written and read back to XML """ # build mesh = openmc.CylindricalMesh() @@ -10,7 +10,7 @@ def test_centre_read_write_to_xml(): mesh.z_grid = [1, 2, 3] mesh.r_grid = [1, 2, 3] - mesh.centre = [0.1, 0.2, 0.3] + mesh.origin = [0.1, 0.2, 0.3] tally = openmc.Tally() @@ -27,4 +27,4 @@ def test_centre_read_write_to_xml(): new_tallies = openmc.Tallies.from_xml() new_tally = new_tallies[0] new_mesh = new_tally.filters[0].mesh - assert np.allclose(new_mesh.centre, mesh.centre) \ No newline at end of file + assert np.allclose(new_mesh.origin, mesh.origin) \ No newline at end of file