def dirname_from_condition(condition,
                           ignore=[],
                           mu_format="{0:.2f}",
                           T_format="{0:.1f}"):
    """Given a particular Monte Carlo settings condition, generate
    a name for a directory with format mua_$mua__mub_$mub__T_$T

    :condition: dict
    :ignore: list of str (suppress these conditions from the directory name)
    :returns: str

    """
    dirname = ""
    pots = condition["param_chem_pot"]
    for c in pots:
        if c in ignore:
            continue
        else:
            mustr = "mu{}".format(c)
            dirname += mustr + "_" + mu_format.format(pots[c]) + "__"

    if "T" not in ignore:
        dirname += "T_" + T_format.format(condition["temperature"])

    return dirname