def _set_map_float(src_dict, dst_proto, attr_name):
    """ Setter for a dictionary of floats """
    if src_dict[attr_name] is None:
        return
    for key, value in src_dict[attr_name].items():
        if value is None:
            continue
        getattr(dst_proto, attr_name)[key] = float(value)
