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 953ea8b commit 0e77ba8Copy full SHA for 0e77ba8
nibabel/ecat.py
@@ -141,7 +141,7 @@
141
('scatter_type', np.uint16),
142
('recon_type', np.uint16),
143
('recon_views', np.uint16),
144
- ('fill', np.uint16)]
+ ('fill', '135S')]
145
subhdr_dtype = np.dtype(subheader_dtd)
146
147
# Ecat Data Types
@@ -644,7 +644,7 @@ def _get_data_dtype(self, frame):
644
645
def _get_frame_offset(self, frame=0):
646
mlist = self._mlist._mlist
647
- offset = mlist[frame][1] * 512
+ offset = (mlist[frame][1] - 1) * 512
648
return int(offset)
649
650
def raw_data_from_fileobj(self, frame=0):
0 commit comments