@staticmethod
def _get_name(x, full_path=False):
    """
        Get name of an hdf5 node

        Returns the short or long group/dataset name.

        Parameters
        ----------
        x : h5py.Dataset or h5py.Group
            The node for which the name is desired
        full_path : bool, optional
            If True returns the full path in file. Default is False.

        Returns
        -------
        name : str
            The name of the node
        """
    if not full_path:
        name = x.name.split('/')[-1]
    else:
        name = x.name
    if not name:
        name = '/'
    return name
