你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 12:36:51 +08:00
Added a check to ensure there are receivers in the specified output file.
这个提交包含在:
@@ -43,6 +43,10 @@ iterations = f.attrs['Iterations']
|
||||
time = np.linspace(0, 1, iterations)
|
||||
time *= (iterations * dt)
|
||||
|
||||
# Check there are any receivers
|
||||
if nrx == 0:
|
||||
raise CmdInputError('No receivers found in {}'.format(file))
|
||||
|
||||
# Check for single output component when doing a FFT
|
||||
if args.fft:
|
||||
if not len(args.outputs) == 1:
|
||||
|
@@ -35,6 +35,10 @@ args = parser.parse_args()
|
||||
f = h5py.File(args.outputfile, 'r')
|
||||
nrx = f.attrs['nrx']
|
||||
|
||||
# Check there are any receivers
|
||||
if nrx == 0:
|
||||
raise CmdInputError('No receivers found in {}'.format(args.outputfile))
|
||||
|
||||
for rx in range(1, nrx + 1):
|
||||
path = '/rxs/rx' + str(rx) + '/'
|
||||
availableoutputs = list(f[path].keys())
|
||||
|
在新工单中引用
屏蔽一个用户