Implement indexing into Apache Druid #1

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

View File

@ -303,6 +303,8 @@ def keepChannels(net, listinfo, mean, sigrelay, relay):
# else:
# newNums = []
flist = [i[0] for i in listinfo]
if len(flist) > max_chans:
max_chans = len(flist)
chosen = sorted(flist, reverse=True, key=lambda x: x[1])[:max_chans]
debug(f"keepChannels() {net}: joining {len(chosen)}/{len(flist)} channels")
trace(f"keepChannels() {net}: joining:{chosen}")
@ -315,6 +317,8 @@ def keepChannels(net, listinfo, mean, sigrelay, relay):
# else:
# newNums = []
siglist = [i[0] for i in listinfo if int(i[1]) > mean]
if len(siglist) > max_chans:
max_chans = len(siglist)
chosen = sorted(siglist, reverse=True, key=lambda x: x[1])[:max_chans]
debug(f"keepChannels() {net}: joining {len(chosen)}/{len(siglist)} channels")
trace(f"keepChannels() {net}: joining:{chosen}")