Added a check to ensure there are receivers in the specified output file.

这个提交包含在:
Craig Warren
2016-02-25 10:43:29 +00:00
父节点 3807a85c39
当前提交 d2b85b8d09
共有 2 个文件被更改,包括 8 次插入0 次删除

查看文件

@@ -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: