import re


def rename_dims(name):
    """Simplify dimension names
    """
    dimname = re.sub("_[67]",   "", name)    # Remove _6 or _7
    dimname = re.sub("jhisto_", "", dimname) # jhisto_
    return(dimname)