Corrected file reading, should be binary to handle raw section of file with VTK data.

这个提交包含在:
craig-warren
2015-11-17 12:58:08 +00:00
父节点 aeb8315b43
当前提交 d3d7443dd7

查看文件

@@ -36,7 +36,7 @@ renderview.ResetCamera()
# List to hold material identifiers written in VTK file in tags <gprMax3D> <Material>
materials = []
with open(model.FileName[0], 'r') as f:
with open(model.FileName[0], 'rb') as f:
for line in f:
if line.startswith('<Material'):
line.rstrip('\n')