Skip to content

Commit ae3c88a

Browse files
authored
Merge pull request #186 from netneurolab/liuzhenqi77-patch-1
[FIX] fix nilearn interface update for fetch_single_file
2 parents 3770570 + ae2b1cd commit ae3c88a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

neuromaps/datasets/annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def fetch_annotation(*, source=None, desc=None, space=None, den=None, res=None,
285285
for dset in info:
286286
fn = Path(data_dir) / 'annotations' / dset['rel_path'] / dset['fname']
287287
if not fn.exists():
288-
dl_file = _fetch_file(dset['url'], str(fn.parent), verbose=verbose,
288+
dl_file = _fetch_file(dset['url'], fn.parent, verbose=verbose,
289289
md5sum=dset['checksum'], session=session)
290290
shutil.move(dl_file, fn)
291291
data.append(str(fn))

neuromaps/datasets/tests/test_annotations.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ def test_available_tags():
3232
assert all(f in restricted for f in unrestricted)
3333

3434

35+
def test_fetch_annotation_smoke():
36+
"""Smoke test of fetching an annotation."""
37+
annotations.fetch_annotation(source="abagen")
38+
39+
3540
@pytest.mark.xfail
3641
def test_fetch_annotation():
3742
"""Test fetching an annotation."""

0 commit comments

Comments
 (0)