def get_short_cfglbls(testres, join_acfgs=False):
    "\n        Labels for published tables\n\n        cfg_lbls = ['baseline:nRR=200+default:', 'baseline:+default:']\n\n        CommandLine:\n            python -m wbia --tf TestResult.get_short_cfglbls\n\n        Example:\n            >>> # SLOW_DOCTEST\n            >>> from wbia.expt.test_result import *  # NOQA\n            >>> import wbia\n            >>> ibs, testres = wbia.testdata_expts('PZ_MTEST', a=['ctrl:size=10'],\n            >>>                                     t=['default:dim_size=[450,550]'])\n            >>> cfg_lbls = testres.get_short_cfglbls()\n            >>> result = ('cfg_lbls = %s' % (ut.repr2(cfg_lbls),))\n            >>> print(result)\n            cfg_lbls = [\n                'default:dim_size=450+ctrl',\n                'default:dim_size=550+ctrl',\n            ]\n        "
    from wbia.expt import annotation_configs
    if False:
        acfg_names = [acfg['qcfg']['_cfgstr'] for acfg in testres.cfgx2_acfg]
        pcfg_names = [pcfg['_cfgstr'] for pcfg in testres.cfgx2_pcfg]
        acfg_hashes = np.array(list(map(hash, acfg_names)))
        (unique_hashes, a_groupxs) = vt.group_indices(acfg_hashes)
        a_label_groups = []
        for groupx in a_groupxs:
            acfg_list = ut.take(testres.cfgx2_acfg, groupx)
            varied_lbls = annotation_configs.get_varied_acfg_labels(acfg_list, mainkey='_cfgstr')
            a_label_groups.append(varied_lbls)
        acfg_lbls = vt.invert_apply_grouping(a_label_groups, a_groupxs)
        pcfg_hashes = np.array(list(map(hash, pcfg_names)))
        (unique_hashes, p_groupxs) = vt.group_indices(pcfg_hashes)
        p_label_groups = []
        for groupx in p_groupxs:
            pcfg_list = ut.take(testres.cfgx2_pcfg, groupx)
            varied_lbls = ut.get_varied_cfg_lbls(pcfg_list, mainkey='_cfgstr')
            p_label_groups.append(varied_lbls)
        pcfg_lbls = vt.invert_apply_grouping(p_label_groups, p_groupxs)
        cfg_lbls = [((albl + '+') + plbl) for (albl, plbl) in zip(acfg_lbls, pcfg_lbls)]
    else:
        cfg_lbls_ = testres.cfgx2_lbl[:]
        cfg_lbls_ = [testres._shorten_lbls(lbl) for lbl in cfg_lbls_]
        pa_tups = [lbl.split('+') for lbl in cfg_lbls_]
        cfg_lbls = []
        for pa in pa_tups:
            new_parts = []
            for part in pa:
                _tup = part.split(ut.NAMEVARSEP)
                (name, settings) = (_tup if (len(_tup) > 1) else (_tup[0], ''))
                new_parts.append((part if settings else name))
            if ((len(new_parts) == 2) and (new_parts[1] == 'default')):
                newlbl = new_parts[0]
            else:
                newlbl = '+'.join(new_parts)
            cfg_lbls.append(newlbl)
    if join_acfgs:
        groupxs = testres.get_cfgx_groupxs()
        group_lbls = []
        for group in ut.apply_grouping(cfg_lbls, groupxs):
            num_parts = 0
            part_dicts = []
            for lbl in group:
                parts = []
                for (count, pa) in enumerate(lbl.split('+')):
                    num_parts = max(num_parts, (count + 1))
                    cfgdict = cfghelpers.parse_cfgstr_list2([pa], strict=False)[0][0]
                    parts.append(cfgdict)
                part_dicts.append(parts)
            group_lbl_parts = []
            for px in range(num_parts):
                cfgs = ut.take_column(part_dicts, px)
                nonvaried_cfg = ut.partition_varied_cfg_list(cfgs)[0]
                group_lbl_parts.append(ut.get_cfg_lbl(nonvaried_cfg))
            group_lbl = '+'.join(group_lbl_parts)
            group_lbls.append(group_lbl)
        cfg_lbls = group_lbls
    return cfg_lbls
Labels for published tables

cfg_lbls = ['baseline:nRR=200+default:', 'baseline:+default:']

CommandLine:
    python -m wbia --tf TestResult.get_short_cfglbls

Example:
    >>> # SLOW_DOCTEST
    >>> from wbia.expt.test_result import *  # NOQA
    >>> import wbia
    >>> ibs, testres = wbia.testdata_expts('PZ_MTEST', a=['ctrl:size=10'],
    >>>                                     t=['default:dim_size=[450,550]'])
    >>> cfg_lbls = testres.get_short_cfglbls()
    >>> result = ('cfg_lbls = %s' % (ut.repr2(cfg_lbls),))
    >>> print(result)
    cfg_lbls = [
        'default:dim_size=450+ctrl',
        'default:dim_size=550+ctrl',
    ]
def get_short_cfglbls(testres, join_acfgs=False):
    "\n        Labels for published tables\n\n        cfg_lbls = ['baseline:nRR=200+default:', 'baseline:+default:']\n\n        CommandLine:\n            python -m wbia --tf TestResult.get_short_cfglbls\n\n        Example:\n            >>> # SLOW_DOCTEST\n            >>> from wbia.expt.test_result import *  # NOQA\n            >>> import wbia\n            >>> ibs, testres = wbia.testdata_expts('PZ_MTEST', a=['ctrl:size=10'],\n            >>>                                     t=['default:dim_size=[450,550]'])\n            >>> cfg_lbls = testres.get_short_cfglbls()\n            >>> result = ('cfg_lbls = %s' % (ut.repr2(cfg_lbls),))\n            >>> print(result)\n            cfg_lbls = [\n                'default:dim_size=450+ctrl',\n                'default:dim_size=550+ctrl',\n            ]\n        "
    from wbia.expt import annotation_configs
    if False:
        acfg_names = [acfg['qcfg']['_cfgstr'] for acfg in testres.cfgx2_acfg]
        pcfg_names = [pcfg['_cfgstr'] for pcfg in testres.cfgx2_pcfg]
        acfg_hashes = np.array(list(map(hash, acfg_names)))
        (unique_hashes, a_groupxs) = vt.group_indices(acfg_hashes)
        a_label_groups = []
        for groupx in a_groupxs:
            acfg_list = ut.take(testres.cfgx2_acfg, groupx)
            varied_lbls = annotation_configs.get_varied_acfg_labels(acfg_list, mainkey='_cfgstr')
            a_label_groups.append(varied_lbls)
        acfg_lbls = vt.invert_apply_grouping(a_label_groups, a_groupxs)
        pcfg_hashes = np.array(list(map(hash, pcfg_names)))
        (unique_hashes, p_groupxs) = vt.group_indices(pcfg_hashes)
        p_label_groups = []
        for groupx in p_groupxs:
            pcfg_list = ut.take(testres.cfgx2_pcfg, groupx)
            varied_lbls = ut.get_varied_cfg_lbls(pcfg_list, mainkey='_cfgstr')
            p_label_groups.append(varied_lbls)
        pcfg_lbls = vt.invert_apply_grouping(p_label_groups, p_groupxs)
        cfg_lbls = [((albl + '+') + plbl) for (albl, plbl) in zip(acfg_lbls, pcfg_lbls)]
    else:
        cfg_lbls_ = testres.cfgx2_lbl[:]
        cfg_lbls_ = [testres._shorten_lbls(lbl) for lbl in cfg_lbls_]
        pa_tups = [lbl.split('+') for lbl in cfg_lbls_]
        cfg_lbls = []
        for pa in pa_tups:
            new_parts = []
            for part in pa:
                _tup = part.split(ut.NAMEVARSEP)
                (name, settings) = (_tup if (len(_tup) > 1) else (_tup[0], ))
                new_parts.append((part if settings else name))
            if ((len(new_parts) == 2) and (new_parts[1] == 'default')):
                newlbl = new_parts[0]
            else:
                newlbl = '+'.join(new_parts)
            cfg_lbls.append(newlbl)
    if join_acfgs:
        groupxs = testres.get_cfgx_groupxs()
        group_lbls = []
        for group in ut.apply_grouping(cfg_lbls, groupxs):
            num_parts = 0
            part_dicts = []
            for lbl in group:
                parts = []
                for (count, pa) in enumerate(lbl.split('+')):
                    num_parts = max(num_parts, (count + 1))
                    cfgdict = cfghelpers.parse_cfgstr_list2([pa], strict=False)[0][0]
                    parts.append(cfgdict)
                part_dicts.append(parts)
            group_lbl_parts = []
            for px in range(num_parts):
                cfgs = ut.take_column(part_dicts, px)
                nonvaried_cfg = ut.partition_varied_cfg_list(cfgs)[0]
                group_lbl_parts.append(ut.get_cfg_lbl(nonvaried_cfg))
            group_lbl = '+'.join(group_lbl_parts)
            group_lbls.append(group_lbl)
        cfg_lbls = group_lbls
    return cfg_lbls