def get_common_qaids(testres):
    if (not testres.has_constant_qaids()):
        common_qaids = reduce(np.intersect1d, testres.cfgx2_qaids)
        return common_qaids
    else:
        return testres.qaids
def get_common_qaids(testres):
    if (not testres.has_constant_qaids()):
        common_qaids = reduce(np.intersect1d, testres.cfgx2_qaids)
        return common_qaids
    else:
        return testres.qaids