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 f8c1e952bb - Show all commits

View File

@ -320,18 +320,18 @@ def keepChannels(net, listinfo, mean, sigrelay, relay):
# else:
# newNums = []
listinfo_sort = sorted(listinfo, reverse=True, key=lambda x: x[1])
debug(f"keepChannels() {net}: listinfo_sort:{listinfo_sort}")
trace(f"keepChannels() {net}: listinfo_sort:{listinfo_sort}")
if len(listinfo_sort) > max_chans:
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]
debug(f"keepChannels() {net}: new siglist:{siglist}")
trace(f"keepChannels() {net}: new siglist:{siglist}")
siglist = siglist[:max_chans]
debug(f"keepChannels() {net}: truncated siglist:{siglist}")
trace(f"keepChannels() {net}: truncated siglist:{siglist}")
debug(f"keepChannels() {net}: siglist:{siglist} max_chans:{max_chans} len_sig:{len(listinfo_sort)}")
trace(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")
trace(f"keepChannels() {net}: joining:{siglist}")
populateChans(net, siglist)