From ae245e0fb7b4dc20df389d42a1b31f956e05f024 Mon Sep 17 00:00:00 2001 From: pitkajuh Date: Wed, 14 Aug 2024 06:52:15 +0000 Subject: [PATCH] Ensure RegularMesh repr shows value for width of the mesh (#3100) Co-authored-by: Paul Romano --- openmc/mesh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/mesh.py b/openmc/mesh.py index 85af6a009c9..a706b8fa811 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -787,8 +787,8 @@ def __repr__(self): string += '{0: <16}{1}{2}\n'.format('\tDimensions', '=\t', self.n_dimension) string += '{0: <16}{1}{2}\n'.format('\tVoxels', '=\t', self._dimension) string += '{0: <16}{1}{2}\n'.format('\tLower left', '=\t', self._lower_left) - string += '{0: <16}{1}{2}\n'.format('\tUpper Right', '=\t', self._upper_right) - string += '{0: <16}{1}{2}\n'.format('\tWidth', '=\t', self._width) + string += '{0: <16}{1}{2}\n'.format('\tUpper Right', '=\t', self.upper_right) + string += '{0: <16}{1}{2}\n'.format('\tWidth', '=\t', self.width) return string @classmethod