mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Address #698 comments
This commit is contained in:
parent
7d23e09710
commit
651ee4240b
3 changed files with 8 additions and 8 deletions
|
|
@ -13,12 +13,11 @@ INTERPOLATION_SCHEME = {1: 'histogram', 2: 'linear-linear', 3: 'linear-log',
|
|||
class Function1D(object):
|
||||
"""A function of one independent variable with HDF5 support."""
|
||||
|
||||
__metaclass__ = ABCMeta
|
||||
|
||||
def __init__(self): pass
|
||||
|
||||
@abstractmethod
|
||||
def __call__(self): pass
|
||||
def __call__(self):
|
||||
raise NotImplemented('Subclasses of Function1D should overwrite the '
|
||||
'__call__ and to_hdf5 methods')
|
||||
|
||||
@abstractmethod
|
||||
def to_hdf5(self, group, name='xy'):
|
||||
|
|
@ -32,7 +31,8 @@ class Function1D(object):
|
|||
Name of the dataset to create
|
||||
|
||||
"""
|
||||
pass
|
||||
raise NotImplemented('Subclasses of Function1D should overwrite the '
|
||||
'__call__ and to_hdf5 methods')
|
||||
|
||||
@classmethod
|
||||
def from_hdf5(cls, dataset):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue