Implement indexing into Apache Druid #1

Closed
m wants to merge 263 commits from druid into master
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 7a8cee1431 - Show all commits

View File

@ -319,7 +319,7 @@ def keepChannels(net, listinfo, mean, sigrelay, relay):
siglist = [i[0] for i in listinfo if int(i[1]) > mean]
if len(siglist) > max_chans:
max_chans = len(siglist)-1
debug(f"keepChannels() {net}: siglist:{siglist} max_chans:{max_chans} len_sig:{len(siglist)} len_max:{len(max_chans)}")
debug(f"keepChannels() {net}: siglist:{siglist} max_chans:{max_chans} len_sig:{len(siglist)}")
chosen = sorted(siglist, reverse=True, key=lambda x: x[1])[:max_chans]
debug(f"keepChannels() {net}: joining {len(chosen)}/{len(siglist)} channels")