Skip to content

Commit

Permalink
Update src/spyglass/spikesorting/v1/curation.py
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Brozdowski <[email protected]>
  • Loading branch information
khl02007 and CBroz1 authored Dec 8, 2023
1 parent 2eccdd7 commit 3f55cc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/spyglass/spikesorting/v1/curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,8 @@ def get_recording(cls, key: dict) -> si.BaseRecording:
primary key of CurationV1 table
"""

recording_id = (SpikeSortingSelection & key).fetch1("recording_id")
analysis_file_name = (
SpikeSortingRecording & {"recording_id": recording_id}
analysis_file_abs_path = (
SpikeSortingRecording * SpikeSortingSelection & key
).fetch1("analysis_file_name")
analysis_file_abs_path = AnalysisNwbfile.get_abs_path(
analysis_file_name
Expand Down

0 comments on commit 3f55cc3

Please sign in to comment.