Skip to content

Commit 74fe76a

Browse files
authored
Update inventory.py
1 parent 3aa4204 commit 74fe76a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

brainimagelibrary/inventory.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ def get(dataset_id=None):
8282
Raises:
8383
requests.exceptions.RequestException: If an error occurs during the API request.
8484
"""
85-
metadata = by_id(dataset_id)
86-
directory = metadata["retjson"][0]["Dataset"][0]["bildirectory"]
87-
88-
filename = f"{__generate_dataset_uuid(directory)}.json"
85+
86+
filename = f"{dataset_id}.json"
8987
url = f"https://download.brainimagelibrary.org/inventory/datasets/{filename}"
9088

9189
try:

0 commit comments

Comments
 (0)