Skip to content

Commit

Permalink
Merge pull request #303 from NeurodataWithoutBorders/fix-file-path
Browse files Browse the repository at this point in the history
hotfix - full file path
  • Loading branch information
luiztauffer authored Jul 7, 2023
2 parents 742bfb4 + 4c3e6f2 commit d62bed0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions nwbwidgets/utils/dandi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ def get_dandiset_metadata(dandiset_id: str):
def list_dandiset_files(dandiset_id: str):
with DandiAPIClient() as client:
dandiset = client.get_dandiset(dandiset_id=dandiset_id, version_id="draft")
return sorted(
[
i.dict().get("path").split("/")[-1]
for i in dandiset.get_assets()
if i.dict().get("path").endswith(".nwb")
]
)
return sorted([i.dict().get("path") for i in dandiset.get_assets() if i.dict().get("path").endswith(".nwb")])


def get_file_url(dandiset_id: str, file_path: str):
Expand Down

0 comments on commit d62bed0

Please sign in to comment.