Skip to content

Commit 3f52ec2

Browse files
committed
LINT pep8
1 parent 9ded76a commit 3f52ec2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nibabel/arrayops.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def _binop(self, val, *, op):
4040
dataobj = op(self_, val_).astype(int)
4141
return self.__class__(dataobj, affine, header)
4242

43-
4443
def _unop(self, *, op):
4544
"""
4645
Parameters
@@ -53,7 +52,6 @@ def _unop(self, *, op):
5352
dataobj = op(np.asanyarray(self.dataobj))
5453
return self.__class__(dataobj, self.affine, self.header)
5554

56-
5755
def __add__(self, other):
5856
return self._binop(other, op=operator.__add__)
5957

@@ -85,7 +83,6 @@ def __abs__(self):
8583
return self._unop(op=operator.__abs__)
8684

8785

88-
8986
def _input_validation(self, val):
9087
"""Check images orientation, affine, and shape muti-images operation."""
9188
_type_check(self)
@@ -100,7 +97,7 @@ def _input_validation(self, val):
10097
# Check shape.
10198
if self.shape[:3] != val.shape[:3]:
10299
raise ValueError("Two images should have the same shape except"
103-
"the time dimension.")
100+
"the time dimension.")
104101

105102
# if 4th dim exist in a image,
106103
# reshape the 3d image to ensure valid projection
@@ -124,6 +121,7 @@ def _input_validation(self, val):
124121
val_ = val
125122
return self_, val_
126123

124+
127125
def _type_check(*args):
128126
"""Ensure image contains correct nifti data type."""
129127
# Check types

0 commit comments

Comments
 (0)