mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Updating warning output.
This commit is contained in:
parent
1a1db91bd2
commit
66fabffc38
1 changed files with 2 additions and 2 deletions
|
|
@ -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__()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue