def get_filter_string(filter_dict):
    """
    return a string like _F0_B50 for a dict like {'F': 0, 'B': 50}
    """
    return "".join(
        "_{}{}".format(k, filter_dict[k]) for k in sorted(filter_dict.keys())
    )