Implement indexing into Apache Druid #1

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

View File

@ -302,10 +302,10 @@ def keepChannels(net, listinfo, mean, sigrelay, relay):
# newNums = modules.provision.provisionMultipleRelays(net, needed)
# else:
# newNums = []
flist = [i[0] for i in listinfo]
if len(flist) > max_chans:
max_chans = len(flist)-1
chosen = sorted(flist, reverse=True, key=lambda x: x[1])[:max_chans]
flist = [i[0] for i in listinfo]
debug(f"keepChannels() {net}: joining {len(chosen)}/{len(flist)} channels")
trace(f"keepChannels() {net}: joining:{chosen}")
populateChans(net, chosen)
@ -316,12 +316,12 @@ def keepChannels(net, listinfo, mean, sigrelay, relay):
# newNums = modules.provision.provisionMultipleRelays(net, needed)
# else:
# newNums = []
siglist = [i[0] for i in listinfo if int(i[1]) > mean]
siglist = [i for i in listinfo if int(i[1]) > mean]
chosen = sorted(siglist, reverse=True, key=lambda x: x[1])[:max_chans]
siglist = [i[0] for i in siglist]
if len(siglist) > max_chans:
max_chans = len(siglist)-1
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")
trace(f"keepChannels() {net}: joining:{chosen}")
populateChans(net, chosen)