Skip to content

Commit

Permalink
Run style checker
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Jun 18, 2024
1 parent 5387e12 commit b70044e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion nipy/algorithms/diagnostics/tsdiffplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import numpy as np

import nipy
from ...utils import deprecate_with_doc

from ...utils import deprecate_with_doc
from .timediff import time_slice_diffs


Expand Down
1 change: 1 addition & 0 deletions nipy/algorithms/statistics/tests/test_intrinsic_volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from numpy.testing import assert_almost_equal, assert_array_equal

from nipy.utils import SCTYPES

from .. import intvol


Expand Down
1 change: 1 addition & 0 deletions nipy/algorithms/statistics/tests/test_quantile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from scipy.stats import scoreatpercentile as sp_percentile

from nipy.utils import SCTYPES

from .._quantile import _median, _quantile

NUMERIC_TYPES = sum([SCTYPES[t]
Expand Down
4 changes: 2 additions & 2 deletions nipy/algorithms/statistics/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from scipy.stats import norm

from nipy.utils import SCTYPES
from ..utils import (check_cast_bin8, multiple_fast_inv, multiple_mahalanobis,
z_score)

from ..utils import check_cast_bin8, multiple_fast_inv, multiple_mahalanobis, z_score


def test_z_score():
Expand Down
2 changes: 1 addition & 1 deletion nipy/algorithms/utils/pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
import numpy as np
import numpy.linalg as npl

from ...utils import SCTYPES
from ...core.image.image import rollimg
from ...core.reference.coordinate_map import (
AxisError,
drop_io_dim,
io_axis_indices,
orth_axes,
)
from ...utils import SCTYPES


def pca(data, axis=0, mask=None, ncomp=None, standardize=True,
Expand Down
2 changes: 1 addition & 1 deletion nipy/algorithms/utils/tests/test_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import numpy as np
import pytest

from nipy.utils import SCTYPES
from nipy.io.api import load_image
from nipy.testing import (
assert_almost_equal,
assert_array_almost_equal,
funcfile,
)
from nipy.utils import SCTYPES

from ..pca import pca

Expand Down
1 change: 0 additions & 1 deletion nipy/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import warnings

import numpy as np

from nibabel.data import DataError, datasource_or_bomber, make_datasource

# Module level datasource instances for convenience
Expand Down
3 changes: 2 additions & 1 deletion nipy/utils/tests/test_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
import pytest
from numpy.testing import assert_array_almost_equal, assert_array_equal

from ..arrays import strides_from
from nipy.utils import SCTYPES

from ..arrays import strides_from


def test_strides_from():
for shape in ((3,), (2,3), (2,3,4), (5,4,3,2)):
Expand Down

0 comments on commit b70044e

Please sign in to comment.