Skip to content

Commit 36f6571

Browse files
markhymerseffigies
authored andcommitted
Add comment as requested by Matthew Brett
Signed-off-by: Mark Hymers <[email protected]>
1 parent 4cf0a80 commit 36f6571

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nibabel/nifti1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,7 @@ def set_dim_info(self, freq=None, phase=None, slice=None):
12741274
This is stored in one byte in the header
12751275
'''
12761276
for inp in (freq, phase, slice):
1277+
# Don't use == on None to avoid a FutureWarning in python3
12771278
if inp is not None and inp not in (0, 1, 2):
12781279
raise HeaderDataError('Inputs must be in [None, 0, 1, 2]')
12791280
info = 0

0 commit comments

Comments
 (0)