diff --git a/tardis/io/util.py b/tardis/io/util.py index cdbd3b54e60..fb3ce0ffce2 100644 --- a/tardis/io/util.py +++ b/tardis/io/util.py @@ -167,7 +167,7 @@ def check_equality(item1, item2): return True -class HDFWriterMixin(object): +class HDFWriter(object): @staticmethod def to_hdf_util(path_or_buf, path, elements, complevel=9, complib='blosc'): diff --git a/tardis/model/base.py b/tardis/model/base.py index eda7363c135..f35306e53a7 100644 --- a/tardis/model/base.py +++ b/tardis/model/base.py @@ -6,7 +6,7 @@ from tardis.util import quantity_linspace, element_symbol2atomic_number from tardis.io.model_reader import read_density_file, read_abundances_file -from tardis.io.util import HDFWriterMixin +from tardis.io.util import HDFWriter as HDFWriterMixin from density import HomologousDensity logger = logging.getLogger(__name__) diff --git a/tardis/model/density.py b/tardis/model/density.py index a7676a6d5c6..4bad6e5abeb 100644 --- a/tardis/model/density.py +++ b/tardis/model/density.py @@ -1,7 +1,7 @@ import numpy as np from tardis.util import quantity_linspace -from tardis.io.util import HDFWriterMixin +from tardis.io.util import HDFWriter as HDFWriterMixin class HomologousDensity(HDFWriterMixin): """A class that holds an initial density and time