<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_hdf(cls, filename, path=''):
 #perhaps this doesn't need to be written? """ Loads EclipsePopulation from HDF file Also runs :func:`EclipsePopulation._make_kde` if it can. :param filename: HDF file :param path: (optional) Path within HDF file """


        new = StarPopulation.load_hdf(filename, path=path)

        #setup lazy loading of starmodel if present
        try:
            with pd.HDFStore(filename) as store:
                if '{}/starmodel'.format(path) in store:
                    new._starmodel = None
                    new._starmodel_file = filename
                    new._starmodel_path = '{}/starmodel'.format(path)
        except:
            pass

        try:
            new._make_kde()
        except NoTrapfitError:
            logging.warning('Trapezoid fit not done.')
        return new