Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #223 from nipreps/maint/remove-unnecessary-submodule
Browse files Browse the repository at this point in the history
MAINT: Move testfile to proper location and use fixture
  • Loading branch information
oesteban authored Aug 29, 2024
2 parents a7f3531 + e1cc756 commit dc40add
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#
# https://www.nipreps.org/community/licensing/
#
from pathlib import Path

import numpy as np
import pytest
Expand All @@ -29,8 +28,6 @@
find_shelling_scheme,
)

_datadir = (Path(__file__).parent.parent.parent / "data").absolute()


@pytest.mark.parametrize(
("bvals", "exp_scheme", "exp_bval_groups", "exp_bval_estimated"),
Expand Down Expand Up @@ -628,8 +625,10 @@ def test_find_shelling_scheme_array(bvals, exp_scheme, exp_bval_groups, exp_bval
),
],
)
def test_find_shelling_scheme_files(dwi_btable, exp_scheme, exp_bval_groups, exp_bval_estimated):
bvals = np.loadtxt(_datadir / f"{dwi_btable}.bval")
def test_find_shelling_scheme_files(
dwi_btable, exp_scheme, exp_bval_groups, exp_bval_estimated, repodata
):
bvals = np.loadtxt(repodata / f"{dwi_btable}.bval")

obt_scheme, obt_bval_groups, obt_bval_estimated = find_shelling_scheme(bvals)
assert obt_scheme == exp_scheme
Expand Down

0 comments on commit dc40add

Please sign in to comment.