コード例 #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
ファイル: test_big_phi.py プロジェクト: Redhwanalgabri/pyphi
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
ファイル: test_big_phi.py プロジェクト: zuxfoucault/pyphi
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
ファイル: test_big_phi.py プロジェクト: B1sounours/pyphi
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)