Skip to content

Commit

Permalink
Run isort
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Louis Barbarant committed Nov 15, 2024
1 parent 9d322fc commit a4e786d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions fmralign/preprocessing.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import os
import warnings
import numpy as np

import numpy as np
from joblib import Memory, Parallel, delayed
from nibabel.nifti1 import Nifti1Image
from nilearn._utils.masker_validation import check_embedded_masker
from nilearn.image import concat_imgs
from sklearn.base import BaseEstimator, TransformerMixin

from fmralign._utils import (
_img_to_parceled_data,
_intersect_clustering_mask,
_make_parcellation,
_img_to_parceled_data,
)


Expand Down
6 changes: 3 additions & 3 deletions fmralign/tests/test_preprocessing.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import pytest
import numpy as np
from nibabel.nifti1 import Nifti1Image
import pytest
from joblib import Memory
from nibabel.nifti1 import Nifti1Image

from fmralign._utils import ParceledData
from fmralign.preprocessing import Preprocessor
from fmralign.tests.utils import random_niimg
from fmralign._utils import ParceledData


def test_init_default_params():
Expand Down
10 changes: 2 additions & 8 deletions fmralign/tests/test_template_alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
from nilearn.maskers import NiftiMasker
from numpy.testing import assert_array_almost_equal

from fmralign.template_alignment import (
TemplateAlignment,
_rescaled_euclidean_mean,
)
from fmralign.tests.utils import (
random_niimg,
zero_mean_coefficient_determination,
)
from fmralign.template_alignment import TemplateAlignment, _rescaled_euclidean_mean
from fmralign.tests.utils import random_niimg, zero_mean_coefficient_determination


def test_template_identity():
Expand Down
2 changes: 1 addition & 1 deletion fmralign/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from nilearn.maskers import NiftiMasker
from numpy.testing import assert_array_almost_equal, assert_array_equal

from fmralign._utils import _make_parcellation, ParceledData
from fmralign._utils import ParceledData, _make_parcellation
from fmralign.tests.utils import random_niimg, sample_parceled_data


Expand Down

0 comments on commit a4e786d

Please sign in to comment.