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.
atleast_1d
loadtxt
1 parent 33d061f commit 3a1a94bCopy full SHA for 3a1a94b
nibabel/cifti2/parse_cifti2.py
@@ -517,7 +517,7 @@ def flush_chardata(self):
517
# conversion to numpy array
518
c = BytesIO(data.strip().encode('utf-8'))
519
vertices = self.struct_state[-1]
520
- vertices.extend(np.atleast_1d(np.loadtxt(c, dtype=np.int)))
+ vertices.extend(np.loadtxt(c, dtype=np.int, ndmin=1))
521
c.close()
522
523
elif self.write_to == 'VoxelIndices':
@@ -531,7 +531,7 @@ def flush_chardata(self):
531
532
533
index = self.struct_state[-1]
534
- index.extend(np.atleast_1d(np.loadtxt(c, dtype=np.int)))
+ index.extend(np.loadtxt(c, dtype=np.int, ndmin=1))
535
536
537
elif self.write_to == 'TransformMatrix':
0 commit comments