diff --git a/tests/test_atlases.py b/tests/test_atlases.py index 9853c5a73a2b6d73cede0606638906f9f817a40d..80be87c74736f39cfa4134a3efa4e804d2ce0db3 100644 --- a/tests/test_atlases.py +++ b/tests/test_atlases.py @@ -225,7 +225,7 @@ def test_load_atlas(): reg.rescanAtlases() probatlas = reg.loadAtlas('harvardoxford-cortical', - indexed=True, calcRange=False, loadData=False) + calcRange=False, loadData=False) probsumatlas = reg.loadAtlas('harvardoxford-cortical', loadSummary=True) lblatlas = reg.loadAtlas('talairach') @@ -240,7 +240,7 @@ def test_find(): reg.rescanAtlases() probatlas = reg.loadAtlas('harvardoxford-cortical', - indexed=True, calcRange=False, loadData=False) + calcRange=False, loadData=False) probsumatlas = reg.loadAtlas('harvardoxford-cortical', loadSummary=True) lblatlas = reg.loadAtlas('talairach') @@ -273,7 +273,7 @@ def test_prepareMask(): reg.rescanAtlases() probatlas = reg.loadAtlas('harvardoxford-cortical', - indexed=True, loadData=False, calcRange=False) + loadData=False, calcRange=False) probsumatlas = reg.loadAtlas('harvardoxford-cortical', loadSummary=True) lblatlas = reg.loadAtlas('talairach') diff --git a/tests/test_atlases_query.py b/tests/test_atlases_query.py index 29676a09bb81fc0fb280bb602a80e34c8eb72825..f90c8d40618b78ea7f33e0c8168623fcdac31d7c 100644 --- a/tests/test_atlases_query.py +++ b/tests/test_atlases_query.py @@ -45,8 +45,7 @@ def _get_atlas(atlasID, res, summary=False): kwargs = {} else: kwargs = {'loadData' : False, - 'calcRange' : False, - 'indexed' : True} + 'calcRange' : False} atlas = fslatlases.loadAtlas(atlasID, loadSummary=summary, diff --git a/tests/test_atlasq_ohi.py b/tests/test_atlasq_ohi.py index 36279ce693ec0cbeb7c783bf3ece588f6c32431d..2c0e4e7aadbeea076278f215b56a5e851458f43d 100644 --- a/tests/test_atlasq_ohi.py +++ b/tests/test_atlasq_ohi.py @@ -98,7 +98,6 @@ def test_coords(seed): atlas = fslatlases.loadAtlas( ad.atlasID, resolution=2, - indexed=True, calcRange=False, loadData=False) diff --git a/tests/test_atlasq_query.py b/tests/test_atlasq_query.py index 85fe4ca48c22922636cae2b03d144627c7fc7903..987cd01141211a28b26739bdb524d8bee3d9f039 100644 --- a/tests/test_atlasq_query.py +++ b/tests/test_atlasq_query.py @@ -442,7 +442,6 @@ def test_bad_mask(seed): atlas = fslatlases.loadAtlas( atlasID, loadSummary=use_label, - indexed=True, loadData=False, calcRange=False) ashape = list(atlas.shape[:3]) diff --git a/tests/test_vest.py b/tests/test_vest.py index 84638a3ce0227fb00b9dbec438cc112cee05e47e..df74b5b8cf656f3a630d7cd29c2da988ab2b5321 100644 --- a/tests/test_vest.py +++ b/tests/test_vest.py @@ -9,6 +9,7 @@ import os.path as op import shutil import tempfile +import warnings import numpy as np import pytest @@ -166,9 +167,12 @@ def test_loadVestLutFile(): for i in range(4): f = testfiles[i] d = testdata[ i] - dnorm = (d - d.min()) / (d.max() - d.min()) - lutnorm = vest.loadVestLutFile(f) - lut = vest.loadVestLutFile(f, normalise=False) + + with warnings.catch_warnings(): + warnings.simplefilter('ignore') + dnorm = (d - d.min()) / (d.max() - d.min()) + lutnorm = vest.loadVestLutFile(f) + lut = vest.loadVestLutFile(f, normalise=False) assert lut.shape == d.shape assert lutnorm.shape == dnorm.shape