Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pbarbarant committed Feb 3, 2025
1 parent 971d886 commit aaccef7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
1 change: 0 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import sys
from pathlib import Path


import fmralign

# If extensions (or modules to document with autodoc) are in another
Expand Down
4 changes: 2 additions & 2 deletions fmralign/tests/test_sparse_pairwise_alignment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import numpy as np
import pytest
import torch
from nibabel.nifti1 import Nifti1Image
from nilearn.surface import SurfaceImage

Expand All @@ -7,8 +9,6 @@
random_niimg,
surf_img,
)
import torch
import pytest

devices = [torch.device("cpu")]
if torch.cuda.is_available():
Expand Down
16 changes: 9 additions & 7 deletions fmralign/tests/test_sparse_template_alignment.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import torch
from itertools import product

import numpy as np
import pytest
import torch
from nibabel.nifti1 import Nifti1Image

from fmralign.alignment_methods import SparseUOT
from fmralign.sparse_template_alignment import (
_rescaled_euclidean_mean_torch,
SparseTemplateAlignment,
_align_images_to_template,
_fit_sparse_template,
_rescaled_euclidean_mean_torch,
)
from nibabel.nifti1 import Nifti1Image
from fmralign.tests.utils import sample_subjects_data, random_niimg
from itertools import product
from fmralign.alignment_methods import SparseUOT
from fmralign.sparse_template_alignment import SparseTemplateAlignment
from fmralign.tests.utils import random_niimg, sample_subjects_data

devices = [torch.device("cpu")]
if torch.cuda.is_available():
Expand Down
3 changes: 2 additions & 1 deletion fmralign/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
import nibabel as nib
import numpy as np
import pytest
import torch
from nilearn.maskers import NiftiMasker
from numpy.testing import assert_array_almost_equal, assert_array_equal
import torch

from fmralign._utils import (
ParceledData,
_make_parcellation,
Expand Down

0 comments on commit aaccef7

Please sign in to comment.