Skip to content

Commit bb22e29

Browse files
author
ltetrel
committed
fixing some comments
1 parent af701bc commit bb22e29

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

repo2data/repo2data.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def _lib_download(self):
247247
subprocess.check_call(["python3", "-c", str_cmd])
248248

249249
def _zenodo_download(self):
250-
"""Install the data with amazon AWS s3 utility"""
250+
"""Install the data with zenodo_get utility"""
251251
print("Info : Starting to download from zenodo %s ..." %
252252
(self._data_requirement_file["src"]))
253253
try:
@@ -310,6 +310,9 @@ def _scan_dl_type(self):
310310
# or a s3 link ?
311311
elif re.match(".*?(s3://).*?", self._data_requirement_file["src"]):
312312
self._s3_download()
313+
# or from zenodo ?
314+
elif re.match(".*?(10\.\d{4}/zenodo).*?", self._data_requirement_file["src"]):
315+
self._zenodo_download()
313316
# or osf
314317
elif re.match(".*?(https://osf.io).*?", self._data_requirement_file["src"]):
315318
self._osf_download()

0 commit comments

Comments
 (0)