Add more debugging information
This commit is contained in:
parent
6f44921647
commit
f4225b622f
|
@ -320,12 +320,16 @@ def keepChannels(net, listinfo, mean, sigrelay, relay):
|
||||||
# else:
|
# else:
|
||||||
# newNums = []
|
# newNums = []
|
||||||
listinfo_sort = sorted(listinfo, reverse=True, key=lambda x: x[1])
|
listinfo_sort = sorted(listinfo, reverse=True, key=lambda x: x[1])
|
||||||
|
debug(f"keepChannels() {net}: listinfo_sort:{listinfo_sort}")
|
||||||
if len(listinfo_sort) > max_chans:
|
if len(listinfo_sort) > max_chans:
|
||||||
max_chans = len(listinfo_sort) - 1
|
max_chans = len(listinfo_sort) - 1
|
||||||
|
debug(f"keepChannels() {net}: new max_chans:{max_chans}")
|
||||||
|
|
||||||
siglist = [i[0] for i in listinfo if int(i[1]) > mean]
|
siglist = [i[0] for i in listinfo if int(i[1]) > mean]
|
||||||
|
debug(f"keepChannels() {net}: new siglist:{siglist}")
|
||||||
|
|
||||||
siglist = siglist[:max_chans]
|
siglist = siglist[:max_chans]
|
||||||
|
debug(f"keepChannels() {net}: truncated siglist:{siglist}")
|
||||||
|
|
||||||
debug(f"keepChannels() {net}: siglist:{siglist} max_chans:{max_chans} len_sig:{len(listinfo_sort)}")
|
debug(f"keepChannels() {net}: siglist:{siglist} max_chans:{max_chans} len_sig:{len(listinfo_sort)}")
|
||||||
debug(f"keepChannels() {net}: joining {len(siglist)}/{len(listinfo_sort)} channels")
|
debug(f"keepChannels() {net}: joining {len(siglist)}/{len(listinfo_sort)} channels")
|
||||||
|
|
Loading…
Reference in New Issue