Enable download of all datasets from GAMMAPY_DATA
@@ -79,6 +79,7 @@ class DownloadProcess(object):
datafound.update(self.parse_datafiles(dssearch, jsondata))
if not dssearch:
+ if self.option == "tutorials":
for item in self.listfiles:
record = self.listfiles[item]
if "datasets" in record:
@@ -173,14 +174,13 @@ class DownloadProcess(object):
datafiles = {}
for dataset in jsondata:
- if df == dataset["name"]:
+ if df == dataset["name"] or df == "":
if dataset["files"]:
for ds in dataset["files"]:
label = ds["path"]
datafiles[label] = {}
datafiles[label]["url"] = ds["url"]
datafiles[label]["path"] = ds["path"]
-
return datafiles
@staticmethod
