你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Corrected file path to pre-built OAs.
这个提交包含在:
@@ -203,6 +203,9 @@ def construct_OA(optparams):
|
|||||||
t (int): Strength of OA
|
t (int): Strength of OA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
oadirectory = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir, 'user_libs', 'optimisation_taguchi')
|
||||||
|
oadirectory = os.path.abspath(oadirectory)
|
||||||
|
|
||||||
# Properties of the orthogonal array (OA)
|
# Properties of the orthogonal array (OA)
|
||||||
# Strength
|
# Strength
|
||||||
t = 2
|
t = 2
|
||||||
@@ -215,7 +218,7 @@ def construct_OA(optparams):
|
|||||||
|
|
||||||
# Load the appropriate OA
|
# Load the appropriate OA
|
||||||
if k <= 4:
|
if k <= 4:
|
||||||
OA = np.load(os.path.join('user_libs', 'OA_9_4_3_2.npy'))
|
OA = np.load(os.path.join(oadirectory, 'OA_9_4_3_2.npy'))
|
||||||
|
|
||||||
# Number of experiments
|
# Number of experiments
|
||||||
N = OA.shape[0]
|
N = OA.shape[0]
|
||||||
@@ -227,7 +230,7 @@ def construct_OA(optparams):
|
|||||||
OA = OA[:, 0:k]
|
OA = OA[:, 0:k]
|
||||||
|
|
||||||
elif k <= 7:
|
elif k <= 7:
|
||||||
OA = np.load(os.path.join('user_libs', 'OA_18_7_3_2.npy'))
|
OA = np.load(os.path.join(oadirectory, 'OA_18_7_3_2.npy'))
|
||||||
|
|
||||||
# Number of experiments
|
# Number of experiments
|
||||||
N = OA.shape[0]
|
N = OA.shape[0]
|
||||||
|
在新工单中引用
屏蔽一个用户