File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -308,25 +308,25 @@ def flush_chardata(self):
308
308
pair .value = data
309
309
elif self .write_to == 'Vertices' :
310
310
# conversion to numpy array
311
- c = StringIO (data )
311
+ c = StringIO (data . strip (). decode ( 'utf-8' ) )
312
312
vertices = self .struct_state [- 1 ]
313
313
vertices .vertices = np .genfromtxt (c , dtype = np .int )
314
314
c .close ()
315
315
elif self .write_to == 'VoxelIndices' :
316
316
# conversion to numpy array
317
- c = StringIO (data )
317
+ c = StringIO (data . strip (). decode ( 'utf-8' ) )
318
318
parent = self .struct_state [- 1 ]
319
319
parent .voxelIndicesIJK .indices = np .genfromtxt (c , dtype = np .int )
320
320
c .close ()
321
321
elif self .write_to == 'VertexIndices' :
322
322
# conversion to numpy array
323
- c = StringIO (data )
323
+ c = StringIO (data . strip (). decode ( 'utf-8' ) )
324
324
index = self .struct_state [- 1 ]
325
325
index .indices = np .genfromtxt (c , dtype = np .int )
326
326
c .close ()
327
327
elif self .write_to == 'TransformMatrix' :
328
328
# conversion to numpy array
329
- c = StringIO (data )
329
+ c = StringIO (data . strip (). decode ( 'utf-8' ) )
330
330
transform = self .struct_state [- 1 ]
331
331
transform .matrix = np .genfromtxt (c , dtype = np .float )
332
332
c .close ()
You can’t perform that action at this time.
0 commit comments