def fetch_nv_collection(contrast):
    nv_data = fetch_neurovault(
    max_images=788,
    collection_id=4337,
    mode='overwrite',
    data_dir='/storage/store/data/HCP900/hcplang',
    cognitive_paradigm_cogatlas=neurovault.Contains(
        'language processing fMRI task paradigm'),
    contrast_definition=neurovault.Contains(contrast),
    map_type='Z map',
    task='LANGUAGE')

    print([meta['id'] for meta in nv_data['images_meta']])
Ejemplo n.º 2
0
def test_contains():
    contains = neurovault.Contains('a', 0)
    assert not contains == 10
    assert contains == ['b', 1, 'a', 0]
    assert ['b', 1, 'a', 0] == contains
    assert contains != ['b', 1, 0]
    assert ['b', 1, 'a'] != contains
    assert not contains != ['b', 1, 'a', 0]
    assert not ['b', 1, 'a', 0] != contains
    assert not contains == ['b', 1, 0]
    assert not ['b', 1, 'a'] == contains
    assert str(contains) == "Contains('a', 0)"
    contains = neurovault.Contains('house', 'face')
    assert 'face vs house' == contains
    assert not 'smiling face vs frowning face' == contains
Ejemplo n.º 3
0
def test_contains():
    contains = neurovault.Contains('a', 0)
    assert_false(contains == 10)
    assert_true(contains == ['b', 1, 'a', 0])
    assert_true(['b', 1, 'a', 0] == contains)
    assert_true(contains != ['b', 1, 0])
    assert_true(['b', 1, 'a'] != contains)
    assert_false(contains != ['b', 1, 'a', 0])
    assert_false(['b', 1, 'a', 0] != contains)
    assert_false(contains == ['b', 1, 0])
    assert_false(['b', 1, 'a'] == contains)
    assert_equal(str(contains), "Contains('a', 0)")
    contains = neurovault.Contains('house', 'face')
    assert_true('face vs house' == contains)
    assert_false('smiling face vs frowning face' == contains)