[pygr-notify] Issue 5 in pygr: Make download-progress messages in downloader.py more terse

codesite-noreply at google.com codesite-noreply at google.com
Tue Apr 7 18:47:46 PDT 2009


Updates:
	Summary: Make download-progress messages in downloader.py more terse
	Status: Accepted
	Cc: marecki
	Labels: reviewby-marecki

Comment #2 on issue 5 by marecki: Make download-progress messages in  
downloader.py more terse
http://code.google.com/p/pygr/issues/detail?id=5

Namshin,

Unfortunately your patch doesn't do exactly what it is supposed to do yet -  
while
the number of output lines is indeed significantly smaller than without the  
patch,
downloader can under appropriate circumstances still produce much more  
output than
just one line every 10 percent.

Example, assuming a file 1048576 bytes long and urrlib calling  
download_monitor()
every 1000 bytes:

* downloaded 103865 B: int(100*103865./(1024*1024)) = 9, message suppressed
* downloaded 104865 B: int(100*104865./(1024*1024)) = 10, message "10 %  
done" is
printed
* downloaded 105865 B: int(100*105865./(1024*1024)) = 10, message "10 %  
done" is
printed again
[...]
* downloaded 114865 B: int(100*114865./(1024*1024)) = 10, message "10 %  
done" is
printed again
* downloaded 115865 B: int(100*115865./(1024*1024)) = 11, message suppressed

To trigger this under natural circumstances, try downloading as large a  
data set as
possible (e.g. hg18).


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the pygr-notify mailing list