示例#1
0
def test_all_complexes_parallelization(s):
    with config.override(PARALLEL_COMPLEX_EVALUATION=False):
        serial = compute.all_complexes(s.network, s.state)

    with config.override(PARALLEL_COMPLEX_EVALUATION=True):
        parallel = compute.all_complexes(s.network, s.state)

    assert sorted(serial) == sorted(parallel)
示例#2
0
def test_all_complexes_standard(s):
    complexes = list(compute.all_complexes(s.network, s.state))
    check_sia(complexes[0], standard_answer)
示例#3
0
def test_all_complexes_standard(s, flushcache, restore_fs_cache):
    flushcache()
    complexes = list(compute.all_complexes(s.network, s.state))
    check_sia(complexes[0], standard_answer)
示例#4
0
def test_all_complexes_standard(standard, flushcache, restore_fs_cache):
    flushcache()
    complexes = list(compute.all_complexes(standard))
    check_mip(complexes[7], standard_answer)
示例#5
0
def test_all_complexes_standard(s, flushcache, restore_fs_cache):
    flushcache()
    complexes = list(compute.all_complexes(s.network, s.state))
    check_mip(complexes[-1], standard_answer)