def get_param_basis(testres, key):
    "\n        Returns what a param was varied between over all tests\n        key = 'K'\n        key = 'dcfg_sample_size'\n        "
    if (key == 'len(daids)'):
        basis = sorted(list(set([len(daids) for daids in testres.cfgx2_daids])))
    elif any([(key in cfgdict) for cfgdict in testres.varied_cfg_list]):
        basis = sorted(list(set([cfgdict[key] for cfgdict in testres.varied_cfg_list])))
    elif any([(key in cfgdict) for cfgdict in testres.varied_acfg_list]):
        basis = sorted(list(set([acfg[key] for acfg in testres.varied_acfg_list])))
    elif (key in testres.common_cfgdict):
        basis = [testres.common_cfgdict[key]]
    elif (key in testres.nonvaried_acfg):
        basis = [testres.nonvaried_acfg[key]]
    else:
        assert False, ('param=%r doesnt exist' % (key,))
    return basis
Returns what a param was varied between over all tests
key = 'K'
key = 'dcfg_sample_size'
def get_param_basis(testres, key):
    "\n        Returns what a param was varied between over all tests\n        key = 'K'\n        key = 'dcfg_sample_size'\n        "
    if (key == 'len(daids)'):
        basis = sorted(list(set([len(daids) for daids in testres.cfgx2_daids])))
    elif any([(key in cfgdict) for cfgdict in testres.varied_cfg_list]):
        basis = sorted(list(set([cfgdict[key] for cfgdict in testres.varied_cfg_list])))
    elif any([(key in cfgdict) for cfgdict in testres.varied_acfg_list]):
        basis = sorted(list(set([acfg[key] for acfg in testres.varied_acfg_list])))
    elif (key in testres.common_cfgdict):
        basis = [testres.common_cfgdict[key]]
    elif (key in testres.nonvaried_acfg):
        basis = [testres.nonvaried_acfg[key]]
    else:
        assert False, ('param=%r doesnt exist' % (key,))
    return basis