Skip to content

Commit a274579

Browse files
committed
chore: ruff check --fix
1 parent 90a278b commit a274579

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

nibabel/cifti2/cifti2_axes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,10 @@ def __eq__(self, other):
634634
return (
635635
(
636636
self.affine is None
637-
or np.allclose(self.affine, other.affine)
638-
and self.volume_shape == other.volume_shape
637+
or (
638+
np.allclose(self.affine, other.affine)
639+
and self.volume_shape == other.volume_shape
640+
)
639641
)
640642
and self.nvertices == other.nvertices
641643
and np.array_equal(self.name, other.name)

nibabel/pointset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def to_mask(self, shape=None) -> SpatialImage:
178178
class GridIndices:
179179
"""Class for generating indices just-in-time"""
180180

181-
__slots__ = ('gridshape', 'dtype', 'shape')
181+
__slots__ = ('dtype', 'gridshape', 'shape')
182182
ndim = 2
183183

184184
def __init__(self, shape, dtype=None):

0 commit comments

Comments
 (0)