Skip to content

Commit 6f47533

Browse files
committed
[TEST] Added test for fetch_yerkes19() function
1 parent 5b98263 commit 6f47533

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

netneurotools/plotting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ def plot_fslr(data, lhlabel, rhlabel, surf_atlas='conte69',
292292
rhlabel : str
293293
Path to .gii file (generic GIFTI file) containing labels to N/2 parcels
294294
on the right hemisphere
295-
surf_atlas: {'conte69', 'yerkes19'}
295+
surf_atlas: {'conte69', 'yerkes19'}, optional
296+
Surface atlas on which to plot 'data'. Default: 'conte69'
296297
surf_type : {'midthickness', 'inflated', 'vinflated'}, optional
297298
Type of brain surface. Default: 'midthickness'
298299
vmin : float, optional

netneurotools/tests/test_datasets.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ def test_fetch_conte69(tmpdir):
5252
['midthickness', 'inflated', 'vinflated', 'info'])
5353

5454

55+
def test_fetch_yerkes19(tmpdir):
56+
conte = datasets.fetch_yerkes19(data_dir=tmpdir, verbose=0)
57+
assert all(hasattr(conte, k) for k in
58+
['midthickness', 'inflated', 'vinflated'])
59+
60+
5561
def test_fetch_pauli2018(tmpdir):
5662
pauli = datasets.fetch_pauli2018(data_dir=tmpdir, verbose=0)
5763
assert all(hasattr(pauli, k) and os.path.isfile(pauli[k]) for k in

0 commit comments

Comments
 (0)