def encoder_close(self):
        # Return Value
        # ------------
        # hdf_string: ''
        #
        #try:
        self.h5pyfile.close()
        #except IOError:
        #    log.debug('Error closing hdf file.')
        #    raise HDFEncoderException("Error closing file.")
        return self.hdf_to_string()
/wrap the hdf_to_string() method so that first the open h5py file object is closed and the the hdf_to_string()
dataset/ETHPy150Open ooici/pyon/prototype/hdf/hdf_codec.py/HDFEncoder.encoder_close