你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Excitation file path and zero padding updates.
这个提交包含在:
@@ -382,6 +382,7 @@ class ExcitationFile(UserObjectSingle):
|
||||
|
||||
# See if file exists at specified path and if not try input file directory
|
||||
excitationfile = Path(excitationfile)
|
||||
# excitationfile = excitationfile.resolve()
|
||||
if not excitationfile.exists():
|
||||
excitationfile = Path(config.sim_config.input_file_path.parent, excitationfile)
|
||||
|
||||
@@ -420,9 +421,9 @@ class ExcitationFile(UserObjectSingle):
|
||||
singlewaveformvalues = singlewaveformvalues[:len(waveformtime)]
|
||||
# Zero-pad end of waveform array if it is shorter than time array
|
||||
elif len(singlewaveformvalues) < len(waveformtime):
|
||||
singlewaveformvalues = np.lib.pad(singlewaveformvalues,
|
||||
(0, len(singlewaveformvalues) -
|
||||
len(waveformvalues)),
|
||||
singlewaveformvalues = np.pad(singlewaveformvalues,
|
||||
(0, len(waveformtime) -
|
||||
len(singlewaveformvalues)),
|
||||
'constant', constant_values=0)
|
||||
|
||||
# Interpolate waveform values
|
||||
|
在新工单中引用
屏蔽一个用户