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 次删除

查看文件

@@ -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())