We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716ed7e commit b669f29Copy full SHA for b669f29
nibabel/analyze.py
@@ -1086,10 +1086,6 @@ def to_file_map(self, file_map=None):
1086
# Write header
1087
hdr.write_to(hdrf)
1088
# 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))
1093
# Seek to writing position, get there by writing zeros if seek fails
1094
seek_tell(imgf, hdr.get_data_offset(), write0=True)
1095
# Write array data
0 commit comments