Skip to content

Commit

Permalink
STYLE: Linter the import statements
Browse files Browse the repository at this point in the history
Linter the `import` statements following the warning raised in
https://github.com/nipreps/eddymotion/actions/runs/8458933073/job/23174220049#step:4:20
  • Loading branch information
jhlegarreta committed Mar 28, 2024
1 parent 2dc2c67 commit 09d1146
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
http://www.sphinx-doc.org/en/master/config
"""

from packaging.version import Version
from eddymotion import __version__, __copyright__, __packagename__

from eddymotion import __copyright__, __packagename__, __version__

# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
Expand Down
10 changes: 8 additions & 2 deletions test/test_dmri.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
# https://www.nipreps.org/community/licensing/
#
"""Unit tests exercising the dMRI data structure."""
import pytest

import numpy as np
import pytest

from eddymotion.data.dmri import load


Expand Down Expand Up @@ -54,7 +56,11 @@ def test_load(datadir, tmp_path):
assert np.allclose(dwi_h5.gradients, dwi_from_nifti1.gradients)

# Try loading NIfTI + b-vecs/vals
dwi_from_nifti2 = load(dwi_nifti_path, bvec_file=bvecs_path, bval_file=bvals_path,)
dwi_from_nifti2 = load(
dwi_nifti_path,
bvec_file=bvecs_path,
bval_file=bvals_path,
)

assert np.allclose(dwi_h5.dataobj, dwi_from_nifti2.dataobj)
assert np.allclose(dwi_h5.bzero, dwi_from_nifti2.bzero)
Expand Down

0 comments on commit 09d1146

Please sign in to comment.