你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
check for None is essential commands
这个提交包含在:
@@ -84,6 +84,7 @@ def process_singlecmds(singlecmds):
|
||||
|
||||
# Spatial discretisation
|
||||
cmd = '#dx_dy_dz'
|
||||
if singlecmds[cmd] is not None:
|
||||
tmp = [float(x) for x in singlecmds[cmd].split()]
|
||||
if len(tmp) != 3:
|
||||
raise CmdInputError(cmd + ' requires exactly three parameters')
|
||||
@@ -94,6 +95,7 @@ def process_singlecmds(singlecmds):
|
||||
|
||||
# Domain
|
||||
cmd = '#domain'
|
||||
if singlecmds[cmd] is not None:
|
||||
tmp = [float(x) for x in singlecmds[cmd].split()]
|
||||
if len(tmp) != 3:
|
||||
raise CmdInputError(cmd + ' requires exactly three parameters')
|
||||
@@ -111,6 +113,7 @@ def process_singlecmds(singlecmds):
|
||||
|
||||
# Time window
|
||||
cmd = '#time_window'
|
||||
if singlecmds[cmd] is not None:
|
||||
tmp = singlecmds[cmd].split()
|
||||
if len(tmp) != 1:
|
||||
raise CmdInputError(cmd + ' requires exactly one parameter to specify the time window. Either in seconds or number of iterations.')
|
||||
|
在新工单中引用
屏蔽一个用户