Skip to content

Commit 90f2a4c

Browse files
demianweffigies
authored andcommitted
CIFTI2 reading now is performed without loaading all file from disk
1 parent b7a3326 commit 90f2a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/cifti2/cifti2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ def from_file_map(klass, file_map):
992992
'extension')
993993

994994
# Construct cifti image
995-
cifti_img = Cifti2Image(data=nifti_img.get_data()[0, 0, 0, 0],
995+
cifti_img = Cifti2Image(data=nifti_img.dataobj[0, 0, 0, 0],
996996
header=cifti_header,
997997
nifti_header=nifti_img.header)
998998
cifti_img.file_map = nifti_img.file_map

0 commit comments

Comments
 (0)