From 781c72f76473b3640f741655546650245a584ec9 Mon Sep 17 00:00:00 2001 From: cactuskid Date: Tue, 10 Sep 2024 14:14:56 +0200 Subject: [PATCH] return sorted hogs, fix not returning list --- src/HogProf/lshbuilder.py | 2 +- src/HogProf/profiler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HogProf/lshbuilder.py b/src/HogProf/lshbuilder.py index 3faafe0..ef9e41c 100755 --- a/src/HogProf/lshbuilder.py +++ b/src/HogProf/lshbuilder.py @@ -332,7 +332,7 @@ def saver(self, i, q, retq, matq, l ): save_start = t.time() else: print(this_dataframe) - else: + else print('wrapping up the run') print('saving at :' , t.time() - global_time ) forest.index() diff --git a/src/HogProf/profiler.py b/src/HogProf/profiler.py index 2a2e248..843ae8a 100755 --- a/src/HogProf/profiler.py +++ b/src/HogProf/profiler.py @@ -364,7 +364,7 @@ def hog_query_sorted(self, hog_id=None, fam_id=None , k = 100 ): sortedhogs = [(k, v) for k, v in hogdict.items()] sortedhogs = sorted(student_tuples, key=lambda x: x[1]) sortedhogs = [ h[0] for h in sortehogs.reverse() ] - return hogdict + return hogdict , sortedhogs def pull_hashes(self , hoglist):