mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Address #695 comments
This commit is contained in:
parent
14b8ef6a1f
commit
75878d583d
2 changed files with 3 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ INTERPOLATION_SCHEME = {1: 'histogram', 2: 'linear-linear', 3: 'linear-log',
|
|||
class Function1D(object):
|
||||
"""A function of one independent variable with HDF5 support."""
|
||||
|
||||
__meta__class = ABCMeta
|
||||
__metaclass__ = ABCMeta
|
||||
|
||||
def __init__(self): pass
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class Product(object):
|
|||
yield represents particles from prompt and delayed sources.
|
||||
particle : str
|
||||
What particle the reaction product is.
|
||||
yield_ : float or openmc.data.Tabulated1D or openmc.data.Polynomial
|
||||
yield_ : openmc.data.Function1D
|
||||
Yield of secondary particle in the reaction.
|
||||
|
||||
"""
|
||||
|
|
@ -118,8 +118,7 @@ class Product(object):
|
|||
|
||||
@yield_.setter
|
||||
def yield_(self, yield_):
|
||||
cv.check_type('product yield', yield_,
|
||||
(Tabulated1D, Polynomial))
|
||||
cv.check_type('product yield', yield_, Function1D)
|
||||
self._yield = yield_
|
||||
|
||||
def to_hdf5(self, group):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue