Skip to content

Commit 308bbf8

Browse files
author
Ben Cipollini
committed
Syncing up with code changes to spatialimages.py that occurred while I was doing this PR.
1 parent 6b40777 commit 308bbf8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

nibabel/filebasedimages.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,11 @@ class FileBasedImage(object):
166166
data. The ``file_map`` contents should therefore be such, that this will
167167
work:
168168
'''
169+
header_class = FileBasedHeader
170+
_meta_sniff_len = 0
169171
files_types = (('image', None),)
170-
alternate_exts = () # Modified by @ImageOpener.register_ext_from_image
172+
valid_exts = ()
171173
_compressed_suffixes = ()
172-
header_class = FileBasedHeader
173174

174175
makeable = True # Used in test code
175176
rw = True # Used in test code
@@ -432,11 +433,6 @@ def from_image(klass, img):
432433
'''
433434
raise NotImplementedError()
434435

435-
@classmethod
436-
def is_valid_extension(klass, ext):
437-
valid = tuple(ft[1] for ft in klass.files_types) + klass.alternate_exts
438-
return ext.lower() in valid
439-
440436
@classmethod
441437
def _sniff_meta_for(klass, filename, sniff_nbytes, sniff=None):
442438
""" Sniff metadata for image represented by `filename`

0 commit comments

Comments
 (0)