Skip to content

Commit 2847e73

Browse files
committed
Merge branch 'fix-ecat-endian' into main-master
* fix-ecat-endian: BF: Fixed ECAT7 writer endianness issue under OSX PPC
2 parents e49e33c + 53a56a6 commit 2847e73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/ecat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,11 +990,11 @@ def to_file_map(self, file_map=None):
990990
dtype = image.dtype
991991

992992
#Write frame images
993-
self._write_data(image, imgf, pos+2, endianness=swapped_code)
993+
self._write_data(image, imgf, pos+2, endianness='>')
994994

995995
#Move to dictionnary offset and write dictionnary entry
996996
self._write_data(mlist[index], imgf, entry_pos,
997-
np.uint32, endianness=swapped_code)
997+
np.uint32, endianness='>')
998998

999999
entry_pos = entry_pos + 16L
10001000

0 commit comments

Comments
 (0)