From 66fabffc38a940dee4390aab57ccabb71e1909b2 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 13 Dec 2021 07:36:12 -0600 Subject: [PATCH] Updating warning output. --- openmc/mesh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/mesh.py b/openmc/mesh.py index 1264f71887..9aacdac283 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -206,7 +206,7 @@ class RegularMesh(MeshBase): if self._width is not None: self._width = None - raise Warning("Unsetting width attribute.") + warnings.warn("Unsetting width attribute.") @width.setter def width(self, width): @@ -216,7 +216,7 @@ class RegularMesh(MeshBase): if self._upper_right is not None: self._upper_right = None - raise Warning("Unsetting upper_right attribute.") + warnings.warn("Unsetting upper_right attribute.") def __repr__(self): string = super().__repr__()