Skip to content

Commit 35b6d6b

Browse files
committed
Fix surface recording sorted data
1 parent 1bbb315 commit 35b6d6b

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

pdm.lock

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
"tables>=3.9.2",
2626
"aind-data-schema==0.33.3",
2727
"pydantic>=2.6.4",
28-
"npc-lims>=0.1.176",
28+
"npc-lims>=0.1.180",
2929
"npc-sync>=0.1.19",
3030
"npc-ephys>=0.1.30",
3131
"npc-stim>=0.1.9",

src/npc_sessions/sessions.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -3744,11 +3744,13 @@ def _aind_session_metadata(self) -> aind_data_schema.core.session.Session:
37443744

37453745

37463746
class DynamicRoutingSurfaceRecording(DynamicRoutingSession):
3747-
def __init__(self, *args, **kwargs) -> None:
3748-
super().__init__(*args, **kwargs)
3749-
# override session id to allow correct sorted/raw data paths to be found with npc_lims:
3750-
self.id = npc_session.SessionRecord(self.id.with_idx(1))
37513747

3748+
@npc_io.cached_property
3749+
def sorted_data_paths(self) -> tuple[upath.UPath, ...]:
3750+
return npc_lims.get_sorted_data_paths_from_s3(
3751+
self.id.with_idx(1)
3752+
)
3753+
37523754
@npc_io.cached_property
37533755
def ephys_timing_data(self) -> tuple[npc_ephys.EphysTimingInfo, ...]:
37543756
"""Sync data not available, so timing info not accurate"""

0 commit comments

Comments
 (0)