Skip to content

Commit

Permalink
Fix getting sorted asset
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Oct 17, 2024
1 parent 85caa3b commit 04f5507
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [
"types-requests>=2.31.0.6",
"npc-io>=0.1.24",
"codeocean>=0.1.5",
"aind-session>=0.2.5",
"aind-session>=0.3.1",
]
requires-python = ">=3.9"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/npc_lims/paths/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def get_sorted_data_paths_from_s3(
aind_session_ = aind_session.get_sessions(np_session.subject, np_session.date)[
0
]
sorted_data_asset = aind_session_.ecephys.latest_ks25_sorted_data_asset
sorted_data_asset = aind_session_.ecephys.sorter.kilosort2_5.data_assets[-1]
else:
raise ValueError("Must provide either session or sorted_data_asset_id")
return tuple(aind_session.get_data_asset_source_dir(sorted_data_asset.id).iterdir())
Expand Down

0 comments on commit 04f5507

Please sign in to comment.