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

Commit

Permalink
fix: revert stylistic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
esavary committed Apr 5, 2024
1 parent 148bb71 commit 5155f9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/eddymotion/data/splitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@
# https://www.nipreps.org/community/licensing/
#
"""Data splitting helpers."""

from pathlib import Path

import h5py
import numpy as np
import h5py


def lovo_split(dataset, index, with_b0=False):
Expand Down
2 changes: 1 addition & 1 deletion test/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import pytest

from eddymotion import model
from eddymotion.data.dmri import DWI
from eddymotion.data.splitting import lovo_split
from eddymotion.data.dmri import DWI


def test_trivial_model():
Expand Down
3 changes: 2 additions & 1 deletion test/test_splitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def test_lovo_split(datadir):
data.gradients[..., index] = 1

# Apply the lovo_split function at the specified index
(train_data, train_gradients), (test_data, test_gradients) = lovo_split(data, index)
(train_data, train_gradients), \
(test_data, test_gradients) = lovo_split(data, index)

# Check if the test data contains only 1s
# and the train data contains only 0s after the split
Expand Down

0 comments on commit 5155f9f

Please sign in to comment.