@classmethod<EOL><INDENT>def load_hdf(cls, filename, path='<STR_LIT>', name=None):<DEDENT>
store = pd.HDFStore(filename)<EOL>try:<EOL><INDENT>samples = store['<STR_LIT>'.format(path)]<EOL>attrs = store.get_storer('<STR_LIT>'.format(path)).attrs        <EOL><DEDENT>except:<EOL><INDENT>store.close()<EOL>raise<EOL><DEDENT>properties = attrs.properties<EOL>maxAV = attrs.maxAV<EOL>max_distance = attrs.max_distance<EOL>min_logg = attrs.min_logg<EOL>ic_type = attrs.ic_type<EOL>use_emcee = attrs.use_emcee<EOL>basename = attrs._mnest_basename<EOL>if name is None:<EOL><INDENT>try:<EOL><INDENT>name = attrs.name<EOL><DEDENT>except:<EOL><INDENT>name = '<STR_LIT>'<EOL><DEDENT><DEDENT>store.close()<EOL>mod = cls(ic_type, maxAV=maxAV, max_distance=max_distance,<EOL>use_emcee=use_emcee, name=name,<EOL>**properties)<EOL>mod._samples = samples<EOL>mod._mnest_basename = basename<EOL>return mod<EOL>
A class method to load a saved StarModel from an HDF5 file.

File must have been created by a call to :func:`StarModel.save_hdf`.

:param filename:
    H5 file to load.

:param path: (optional)
    Path within HDF file.

:return:
    :class:`StarModel` object.