mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Made DeprecationWarning for Cell.add_surface(...) only print once
This commit is contained in:
parent
ba959372f4
commit
9bf8964edd
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ class Cell(object):
|
|||
|
||||
"""
|
||||
|
||||
warnings.simplefilter('always', DeprecationWarning)
|
||||
warnings.simplefilter('once', DeprecationWarning)
|
||||
warnings.warn("Cell.add_surface(...) has been deprecated and may be "
|
||||
"removed in a future version. The region for a Cell "
|
||||
"should be defined using the region property directly.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue