-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Thank you for this project! It's much easier to get matrices now. The only issue I found so far is that it takes days to download big matrices. I've changed the chunk size along with the sleep duration so now it seems to be as fast as downloading with the browser. Here is my change:
with open(localdest, "wb") as outfile, tqdm(
total=content_length, desc=self.name, unit="B"
) as pbar:
for chunk in response.iter_content(chunk_size=131072):
outfile.write(chunk)
pbar.update(131072)
time.sleep(0.01)I'm not sure about exact numbers, but it most probably should be higher than in the trunk. Is there any reason to keep the chunk size that small?
Metadata
Metadata
Assignees
Labels
No labels