你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +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
|
# 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'))]
|
inputlines = [line.rstrip() for line in f if(not line.startswith('##') and line.rstrip('\n'))]
|
||||||
|
|
||||||
|
# Store length of dict
|
||||||
|
taglength = len(taguchinamespace)
|
||||||
|
|
||||||
x = 0
|
x = 0
|
||||||
while(x < len(inputlines)):
|
while(x < len(inputlines)):
|
||||||
if(inputlines[x].startswith('#taguchi:')):
|
if(inputlines[x].startswith('#taguchi:')):
|
||||||
@@ -191,6 +194,10 @@ def taguchi_code_blocks(inputfile, taguchinamespace):
|
|||||||
|
|
||||||
x += 1
|
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
|
return taguchinamespace
|
||||||
|
|
||||||
|
|
||||||
|
在新工单中引用
屏蔽一个用户