File tree Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -899,18 +899,7 @@ class AnalyzeImage(SpatialImage):
899
899
files_types = (('image' ,'.img' ), ('header' ,'.hdr' ))
900
900
_compressed_exts = ('.gz' , '.bz2' )
901
901
902
- class ImageArrayProxy (ArrayProxy ):
903
- ''' Analyze-type implemention of array proxy protocol
904
-
905
- The array proxy allows us to freeze the passed fileobj and
906
- header such that it returns the expected data array.
907
- '''
908
- def _read_data (self ):
909
- fileobj = allopen (self .file_like )
910
- data = self .header .data_from_fileobj (fileobj )
911
- if isinstance (self .file_like , basestring ): # filename
912
- fileobj .close ()
913
- return data
902
+ ImageArrayProxy = ArrayProxy
914
903
915
904
def get_header (self ):
916
905
''' Return header
Original file line number Diff line number Diff line change @@ -429,18 +429,7 @@ class MGHImage(SpatialImage):
429
429
files_types = (('image' , '.mgh' ),)
430
430
_compressed_exts = ('.mgz' ,)
431
431
432
- class ImageArrayProxy (ArrayProxy ):
433
- ''' Analyze-type implemention of array proxy protocol
434
-
435
- The array proxy allows us to freeze the passed fileobj and
436
- header such that it returns the expected data array.
437
- '''
438
- def _read_data (self ):
439
- fileobj = allopen (self .file_like )
440
- data = self .header .data_from_fileobj (fileobj )
441
- if isinstance (self .file_like , basestring ): # filename
442
- fileobj .close ()
443
- return data
432
+ ImageArrayProxy = ArrayProxy
444
433
445
434
def get_header (self ):
446
435
''' Return the MGH header given the MGHImage'''
You can’t perform that action at this time.
0 commit comments