def METHOD_NAME( self, f, iteration, time, dt ) :
    """
    Sets the attributes of the hdf5 file, that comply with OpenPMD
    Parameter
    ---------
    f : an h5py.File object
    iteration: int
        The iteration number of this diagnostic
    time: float (seconds)
        The physical time at this iteration
    dt: float (seconds)
        The timestep of the simulation
    """
    # Set the attributes of the HDF5 file
    # General attributes
    f.attrs["openPMD"] = np.string_("1.0.0")
    f.attrs["openPMDextension"] = np.uint32(1)
    f.attrs["software"] = np.string_("fbpic " + fbpic_version)
    f.attrs["date"] = np.string_(
        datetime.datetime.now(tzlocal()).strftime('%Y-%m-%d %H:%M:%S %z'))
    f.attrs["meshesPath"] = np.string_("fields/")
    f.attrs["particlesPath"] = np.string_("particles/")
    f.attrs["iterationEncoding"] = np.string_("fileBased")
    f.attrs["iterationFormat"] =  np.string_("data%T.h5")
    # Setup the basePath
    f.attrs["basePath"] = np.string_("/data/%T/")
    base_path = "/data/%d/" %iteration
    bp = f.require_group( base_path )
    bp.attrs["time"] = time
    bp.attrs["dt"] = dt
    bp.attrs["timeUnitSI"] = 1.