mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Respond to @wbinventor comments on #642
This commit is contained in:
parent
cf45388d6e
commit
838f84c963
2 changed files with 5 additions and 5 deletions
|
|
@ -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 ' \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
----------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue