Skip to content

Commit

Permalink
filesave final
Browse files Browse the repository at this point in the history
  • Loading branch information
cactuskid committed Aug 30, 2024
1 parent b30b420 commit 759ddcf
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/HogProf/lshbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,14 +333,19 @@ def saver(self, i, q, retq, matq, l ):
else:
print(this_dataframe)
else:
if self.verbose == True:
print('wrap it up')
print('wrapping up the run')
print('saving at :' , t.time() - global_time )
forest.index()
with open(self.lshforestpath , 'wb') as forestout:
forestout.write(pickle.dumps(forest, -1))
h5flush()
if self.verbose == True:
print('DONE SAVER' + str(i))
if self.fileglob:
print('saving orthoxml to fam mapping')
savedf.to_csv(self.saving_path + 'fam2orthoxml.csv')

print('DONE SAVER' + str(i))
break


def matrix_updater(self, iprocess , q, retq, matq, l):
print('hogmat saver init ' + str(iprocess))
Expand Down

0 comments on commit 759ddcf

Please sign in to comment.