你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Added check for Taguchi code blocks when using --opt-taguchi argument.
这个提交包含在:
@@ -170,6 +170,9 @@ def taguchi_code_blocks(inputfile, taguchinamespace):
|
||||
# Strip out any newline characters and comments that must begin with double hashes
|
||||
inputlines = [line.rstrip() for line in f if(not line.startswith('##') and line.rstrip('\n'))]
|
||||
|
||||
# Store length of dict
|
||||
taglength = len(taguchinamespace)
|
||||
|
||||
x = 0
|
||||
while(x < len(inputlines)):
|
||||
if(inputlines[x].startswith('#taguchi:')):
|
||||
@@ -190,6 +193,10 @@ def taguchi_code_blocks(inputfile, taguchinamespace):
|
||||
exec(taguchicompiledcode, taguchinamespace)
|
||||
|
||||
x += 1
|
||||
|
||||
# Check if any Taguchi code blocks were found
|
||||
if len(taguchinamespace) == taglength:
|
||||
raise CmdInputError('No #taguchi and #end_taguchi code blocks found.')
|
||||
|
||||
return taguchinamespace
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户