Made DeprecationWarning for Cell.add_surface(...) only print once

This commit is contained in:
wbinventor@gmail.com 2015-12-06 17:45:27 -05:00
parent ba959372f4
commit 9bf8964edd

View file

@ -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.",