Skip to content

Commit b669f29

Browse files
committed
ENH: data shape check preempted by update_header
1 parent 716ed7e commit b669f29

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

nibabel/analyze.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,10 +1086,6 @@ def to_file_map(self, file_map=None):
10861086
# Write header
10871087
hdr.write_to(hdrf)
10881088
# Write image
1089-
shape = hdr.get_data_shape()
1090-
if data.shape != shape:
1091-
raise HeaderDataError('Data should be shape (%s)' %
1092-
', '.join(str(s) for s in shape))
10931089
# Seek to writing position, get there by writing zeros if seek fails
10941090
seek_tell(imgf, hdr.get_data_offset(), write0=True)
10951091
# Write array data

0 commit comments

Comments
 (0)