你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Use of np.isclose rather than equality when finding frequency of maximum power.
这个提交包含在:
@@ -255,7 +255,7 @@ def dispersion_analysis(G):
|
||||
# FFT
|
||||
freqs, power = fft_power(waveformvalues, G.dt)
|
||||
# Get frequency for max power
|
||||
freqmaxpower = np.where(power == 0)[0][0]
|
||||
freqmaxpower = np.where(np.isclose(power, 0))[0][0]
|
||||
|
||||
# Set maximum frequency to a threshold drop from maximum power, ignoring DC value
|
||||
try:
|
||||
|
在新工单中引用
屏蔽一个用户