Respond to @wbinventor comments on #642

This commit is contained in:
Paul Romano 2016-05-09 08:33:18 -05:00
parent cf45388d6e
commit 838f84c963
2 changed files with 5 additions and 5 deletions

View file

@ -622,8 +622,6 @@ class StatePoint(object):
Raises
------
RuntimeError
If a Summary object has already been linked.
ValueError
An error when the argument passed to the 'summary' parameter is not
an openmc.Summary object.
@ -631,7 +629,9 @@ class StatePoint(object):
"""
if self.summary is not None:
raise RuntimeError('A Summary object has already been linked.')
warnings.warn('A Summary object has already been linked.',
RuntimeWarning)
return
if not isinstance(summary, openmc.summary.Summary):
msg = 'Unable to link statepoint with "{0}" which ' \

View file

@ -36,8 +36,8 @@ class Universe(object):
automatically be assigned
name : str, optional
Name of the universe. If not specified, the name is the empty string.
cells : Iterable of openmc.Cell
Cells to add to the universe
cells : Iterable of openmc.Cell, optional
Cells to add to the universe. By default no cells are added.
Attributes
----------