Commit adafb13c authored by Cresson Remi's avatar Cresson Remi
Browse files

REFAC: safer download code

1 merge request!23Add deepnets
Pipeline #34905 passed with stages
in 2 minutes and 20 seconds
Showing with 0 additions and 1 deletion
+0 -1
...@@ -248,7 +248,6 @@ class TheiaDownloader: ...@@ -248,7 +248,6 @@ class TheiaDownloader:
if not is_file_complete(filename, description["checksum"]): if not is_file_complete(filename, description["checksum"]):
print("Downloading {}".format(acq_date)) print("Downloading {}".format(acq_date))
curl_url(url, postdata=None, out_file=filename, header=header) curl_url(url, postdata=None, out_file=filename, header=header)
file_handle.close()
else: else:
print("{} already downloaded. Skipping.".format(acq_date)) print("{} already downloaded. Skipping.".format(acq_date))
description["local_file"] = filename description["local_file"] = filename
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment