def cbpdn_class_label_lookup(label):
    """Get a CBPDN class from a label string."""

    clsmod = {'admm': admm_cbpdn.ConvBPDN,
              'fista': fista_cbpdn.ConvBPDN}
    if label in clsmod:
        return clsmod[label]
    else:
        raise ValueError('Unknown ConvBPDN solver method %s' % label)