你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Corrected file reading, should be binary to handle raw section of file with VTK data.
这个提交包含在:
@@ -36,7 +36,7 @@ renderview.ResetCamera()
|
|||||||
|
|
||||||
# List to hold material identifiers written in VTK file in tags <gprMax3D> <Material>
|
# List to hold material identifiers written in VTK file in tags <gprMax3D> <Material>
|
||||||
materials = []
|
materials = []
|
||||||
with open(model.FileName[0], 'r') as f:
|
with open(model.FileName[0], 'rb') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
if line.startswith('<Material'):
|
if line.startswith('<Material'):
|
||||||
line.rstrip('\n')
|
line.rstrip('\n')
|
||||||
|
在新工单中引用
屏蔽一个用户