We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aa4204 commit 74fe76aCopy full SHA for 74fe76a
brainimagelibrary/inventory.py
@@ -82,10 +82,8 @@ def get(dataset_id=None):
82
Raises:
83
requests.exceptions.RequestException: If an error occurs during the API request.
84
"""
85
- metadata = by_id(dataset_id)
86
- directory = metadata["retjson"][0]["Dataset"][0]["bildirectory"]
87
-
88
- filename = f"{__generate_dataset_uuid(directory)}.json"
+
+ filename = f"{dataset_id}.json"
89
url = f"https://download.brainimagelibrary.org/inventory/datasets/{filename}"
90
91
try:
0 commit comments