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 070eca8 commit 4c3e6f2Copy full SHA for 4c3e6f2
nwbwidgets/utils/dandi.py
@@ -11,13 +11,7 @@ def get_dandiset_metadata(dandiset_id: str):
11
def list_dandiset_files(dandiset_id: str):
12
with DandiAPIClient() as client:
13
dandiset = client.get_dandiset(dandiset_id=dandiset_id, version_id="draft")
14
- return sorted(
15
- [
16
- i.dict().get("path")
17
- for i in dandiset.get_assets()
18
- if i.dict().get("path").endswith(".nwb")
19
- ]
20
- )
+ return sorted([i.dict().get("path") for i in dandiset.get_assets() if i.dict().get("path").endswith(".nwb")])
21
22
23
def get_file_url(dandiset_id: str, file_path: str):
0 commit comments