Skip to content

Commit d62bed0

Browse files
authored
Merge pull request #303 from NeurodataWithoutBorders/fix-file-path
hotfix - full file path
2 parents 742bfb4 + 4c3e6f2 commit d62bed0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

nwbwidgets/utils/dandi.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ def get_dandiset_metadata(dandiset_id: str):
1111
def list_dandiset_files(dandiset_id: str):
1212
with DandiAPIClient() as client:
1313
dandiset = client.get_dandiset(dandiset_id=dandiset_id, version_id="draft")
14-
return sorted(
15-
[
16-
i.dict().get("path").split("/")[-1]
17-
for i in dandiset.get_assets()
18-
if i.dict().get("path").endswith(".nwb")
19-
]
20-
)
14+
return sorted([i.dict().get("path") for i in dandiset.get_assets() if i.dict().get("path").endswith(".nwb")])
2115

2216

2317
def get_file_url(dandiset_id: str, file_path: str):

0 commit comments

Comments
 (0)