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 b8a1039 commit 216421bCopy full SHA for 216421b
nibabel/cifti2/parse_cifti2.py
@@ -538,7 +538,8 @@ def flush_chardata(self):
538
# conversion to numpy array
539
c = BytesIO(data.strip().encode('utf-8'))
540
transform = self.struct_state[-1]
541
- transform.matrix = np.loadtxt(c, dtype=np.float64)
+ matrix = np.loadtxt(c, dtype=np.float64)
542
+ transform.matrix = matrix.reshape(4, 4)
543
c.close()
544
545
elif self.write_to == 'Label':
0 commit comments