Skip to content

Commit 4c3e6f2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 070eca8 commit 4c3e6f2

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")
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)