Skip to content

Commit

Permalink
return sorted hogs, fix not returning list
Browse files Browse the repository at this point in the history
  • Loading branch information
cactuskid committed Sep 10, 2024
1 parent 759ddcf commit 781c72f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HogProf/lshbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/HogProf/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down

0 comments on commit 781c72f

Please sign in to comment.