Skip to content

Commit a4fa618

Browse files
committed
no progbar for small file download
1 parent 8d6634b commit a4fa618

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

P1B3/data_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,14 @@ def get_file(fname, origin, untar=False,
7979
download = True
8080

8181
if download:
82-
print('Downloading data from', origin)
82+
print('\nDownloading data from', origin)
8383
global progbar
8484
progbar = None
8585

8686
def dl_progress(count, block_size, total_size):
8787
global progbar
88+
if total_size < 1000000:
89+
return
8890
if progbar is None:
8991
progbar = Progbar(total_size)
9092
else:

0 commit comments

Comments
 (0)