From 75878d583d6b1e0ea158c62226d130238cd552d6 Mon Sep 17 00:00:00 2001 From: Sterling Harper Date: Mon, 8 Aug 2016 10:06:02 -0500 Subject: [PATCH] Address #695 comments --- openmc/data/function.py | 2 +- openmc/data/product.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/openmc/data/function.py b/openmc/data/function.py index e827e12833..798aa18cdd 100644 --- a/openmc/data/function.py +++ b/openmc/data/function.py @@ -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 diff --git a/openmc/data/product.py b/openmc/data/product.py index 116905f7a3..eec47c9560 100644 --- a/openmc/data/product.py +++ b/openmc/data/product.py @@ -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):