model.ClusterModel.from_h5_file#
- classmethod ClusterModel.from_h5_file(filename, r_min=None, r_max=None)[source]#
Initialize a
model.ClusterModel
instance from HDF5 file.- Parameters:
Notes
Attention
The
model.ClusterModel.from_h5_file()
method will seek bothfilename
andfilename.properties
. If the later cannot be found, themodel.ClusterModel
will lose its attributes and issue a warning.Examples
>>> from cluster_generator import ClusterModel >>> hse_model = ClusterModel.from_h5_file("hse_model.h5")