Address #695 comments

This commit is contained in:
Sterling Harper 2016-08-08 10:06:02 -05:00
parent 14b8ef6a1f
commit 75878d583d
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -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):