Skip to content

Commit 79968cf

Browse files
committed
add comment
1 parent e8e5fec commit 79968cf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/spikeinterface/core/basesorting.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ def get_unit_spike_train_in_seconds(
269269
return spike_times
270270

271271
# Use the native spiking times if available
272+
# Some instances might implement a method themselves to access spike times directly without having to convert
273+
# (e.g. NWB extractors)
272274
if hasattr(segment, "get_unit_spike_train_in_seconds"):
273275
return segment.get_unit_spike_train_in_seconds(unit_id=unit_id, start_time=start_time, end_time=end_time)
274276

0 commit comments

Comments
 (0)