Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
23cef31
wip: load_analyzer_from_nwb function
alejoe91 Dec 16, 2025
6aaac55
Merge branch 'main' of github.com:SpikeInterface/spikeinterface into …
alejoe91 Dec 23, 2025
fcba7d3
Make dtype/is_filtered optional attrs and suggestions from code review
alejoe91 Dec 23, 2025
e0a551a
Merge branch 'main' into load_analyzer_from_nwb
alejoe91 Dec 23, 2025
b72a39d
fix ibl tests
alejoe91 Dec 23, 2025
f65f2ce
Merge branch 'load_analyzer_from_nwb' of github.com:alejoe91/spikeint…
alejoe91 Dec 23, 2025
951df99
merge
h-mayorquin Jul 7, 2026
8146139
Merge branch 'main' into load_analyzer_nwb_heberto
h-mayorquin Jul 7, 2026
8e9e12d
fix file references
h-mayorquin Jul 7, 2026
97a6d23
fix main indices
h-mayorquin Jul 7, 2026
9de7773
Merge branch 'main' into load_analyzer_nwb_heberto
h-mayorquin Jul 8, 2026
20d3845
Fix performance
h-mayorquin Jul 8, 2026
5558f79
Merge branch 'improve_property_reading_performance' into load_analyze…
h-mayorquin Jul 8, 2026
8888b60
more performance fixes
h-mayorquin Jul 8, 2026
b15964b
spike vector
h-mayorquin Jul 8, 2026
a90b018
Spike vector alterantive construction on nwb sorting
h-mayorquin Jul 8, 2026
572b44d
Merge branch 'main' into load_analyzer_nwb_heberto
h-mayorquin Jul 8, 2026
beaad9d
Merge branch 'make_nwb_sorting_lazy' into load_analyzer_nwb_heberto
h-mayorquin Jul 8, 2026
66af315
nwb extractors
h-mayorquin Jul 8, 2026
c53e336
stream improvements
h-mayorquin Jul 8, 2026
469dc9b
fix channel indices
h-mayorquin Jul 8, 2026
47f9fc7
better std behavior
h-mayorquin Jul 9, 2026
d010d13
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 9, 2026
2c7ffa5
better naming
h-mayorquin Jul 9, 2026
aa01d29
Merge remote-tracking branch 'refs/remotes/origin/load_analyzer_nwb_h…
h-mayorquin Jul 9, 2026
bdbbe86
zach comments
h-mayorquin Jul 9, 2026
ee97e9c
mapping
h-mayorquin Jul 9, 2026
3a42237
tests
h-mayorquin Jul 9, 2026
5e67961
Merge branch 'main' into make_nwb_sorting_lazy
h-mayorquin Jul 9, 2026
8d02074
review
h-mayorquin Jul 9, 2026
0ed9153
add comments
h-mayorquin Jul 9, 2026
57c955d
Merge branch 'make_nwb_sorting_lazy' into load_analyzer_nwb_heberto
h-mayorquin Jul 9, 2026
7531bb9
Merge branch 'main' into load_analyzer_nwb_heberto
alejoe91 Jul 16, 2026
8b64779
wip
alejoe91 Jul 16, 2026
31f3e68
fix: always compute all random spikes
alejoe91 Jul 16, 2026
3f1c131
fix for multi-group
alejoe91 Jul 16, 2026
ef395c8
Merge branch 'load_analyzer_nwb_heberto' of github.com:h-mayorquin/sp…
alejoe91 Jul 16, 2026
62d516e
Merge branch 'main' into load_analyzer_nwb_heberto
h-mayorquin Jul 17, 2026
ca815ba
fix groups
h-mayorquin Jul 17, 2026
61ffd02
logic for unit fixing
h-mayorquin Jul 17, 2026
41ce623
improvements
h-mayorquin Jul 18, 2026
3a1d69e
more fixes
h-mayorquin Jul 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/spikeinterface/core/basesorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,23 @@ def get_last_spike_frame(self, segment_index: int | None = None) -> int:
return 0
return int(np.max(spikes_in_segment["sample_index"]))

def get_last_spike_time(self, segment_index: int | None = None) -> float:
"""Get the time of the last spike in a segment across all units.

Parameters
----------
segment_index : int or None, default: None
The segment index (required for multi-segment)

Returns
-------
float
The time of the last spike in seconds, or 0.0 if no spikes exist.
"""
segment_index = self._check_segment_index(segment_index)
last_spike_frame = self.get_last_spike_frame(segment_index=segment_index)
return self.sample_index_to_time(last_spike_frame, segment_index=segment_index)

def get_times(
self,
segment_index: int | None = None,
Expand Down
1 change: 1 addition & 0 deletions src/spikeinterface/extractors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from .neoextractors import get_neo_num_blocks, get_neo_streams
from .phykilosortextractors import read_kilosort_as_analyzer
from .nwbextractors import read_nwb_sorting_analyzer

from warnings import warn

Expand Down
Loading
Loading