[hdf-compass] 245/295: update for download script

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository hdf-compass.

commit dc02ff764eac9c26759f7007a77fa61a10207031
Author: jreadey <jreadey at hdfgroup.org>
Date:   Sun Nov 8 17:48:11 2015 -0800

    update for download script
---
 data/hdf5/Download/download_data.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/data/hdf5/Download/download_data.py b/data/hdf5/Download/download_data.py
index caf03a5..a6999d2 100644
--- a/data/hdf5/Download/download_data.py
+++ b/data/hdf5/Download/download_data.py
@@ -4,6 +4,7 @@ Download additional data files from AWS
 
 from __future__ import absolute_import, division, print_function
 
+import os.path
 try:
     import wget
 
@@ -18,6 +19,7 @@ files = [
     'attrfile.h5',
     'craterlake.h5',
     'compound.h5',
+    'comp_complex.h5',
     'countries.h5',
     'hapmap_compressed.h5',
     'hdf5_test.h5',
@@ -36,6 +38,9 @@ files = [
 
 for filename in files:
     uri = 'https://s3.amazonaws.com/hdfgroup/data/hdf5test/' + filename
-    print("downloading: " + uri)
-    wget.download(uri, bar=wget.bar_thermometer)
+    print( uri)
+    if os.path.isfile(filename):
+        print(filename, "already downloaded - skipping")
+    else:
+        wget.download(uri, bar=wget.bar_thermometer)
 print("done!")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hdf-compass.git



More information about the debian-science-commits mailing list