Hi, thanks for the quick fix for #25. Since the original issue has been closed, I open a new issue for this problem. I still face the memory leakage problem after changing the code to:
import os
import sys
import psutil
import foldcomp
with open("afdb_rep_v4.lookup", "r") as f:
lines = f.readlines()
ids = [line.strip().split("\t")[1] for line in lines]
batch_size = 1000
for i in range(0, len(ids), batch_size):
with foldcomp.open("afdb_rep_v4", ids=ids[i:i+batch_size]) as db:
for (name, pdb) in db:
data_dict = foldcomp.get_data(pdb)
print(psutil.Process(os.getpid()).memory_info().rss / 1024 / 1024, "MB")
Hi, thanks for the quick fix for #25. Since the original issue has been closed, I open a new issue for this problem. I still face the memory leakage problem after changing the code to:
I get the following output:
So I assume there are still some problems in
foldcomp.get_data
. Could you help take a look?