@@ -517,28 +517,28 @@ def flush_chardata(self):
517
517
# conversion to numpy array
518
518
c = BytesIO (data .strip ().encode ('utf-8' ))
519
519
vertices = self .struct_state [- 1 ]
520
- vertices .extend (np .genfromtxt (c , dtype = np .int ))
520
+ vertices .extend (np .loadtxt (c , dtype = np .int ))
521
521
c .close ()
522
522
523
523
elif self .write_to == 'VoxelIndices' :
524
524
# conversion to numpy array
525
525
c = BytesIO (data .strip ().encode ('utf-8' ))
526
526
parent = self .struct_state [- 1 ]
527
- parent .voxel_indices_ijk .extend (np .genfromtxt (c , dtype = np .int ).reshape (- 1 , 3 ))
527
+ parent .voxel_indices_ijk .extend (np .loadtxt (c , dtype = np .int ).reshape (- 1 , 3 ))
528
528
c .close ()
529
529
530
530
elif self .write_to == 'VertexIndices' :
531
531
# conversion to numpy array
532
532
c = BytesIO (data .strip ().encode ('utf-8' ))
533
533
index = self .struct_state [- 1 ]
534
- index .extend (np .genfromtxt (c , dtype = np .int ))
534
+ index .extend (np .loadtxt (c , dtype = np .int ))
535
535
c .close ()
536
536
537
537
elif self .write_to == 'TransformMatrix' :
538
538
# conversion to numpy array
539
539
c = BytesIO (data .strip ().encode ('utf-8' ))
540
540
transform = self .struct_state [- 1 ]
541
- transform .matrix = np .genfromtxt (c , dtype = np .float )
541
+ transform .matrix = np .loadtxt (c , dtype = np .float )
542
542
c .close ()
543
543
544
544
elif self .write_to == 'Label' :
0 commit comments