Add events handling: trace/map + new view for aliggned/rasters + PSTHs#218
Add events handling: trace/map + new view for aliggned/rasters + PSTHs#218alejoe91 wants to merge 5 commits intoSpikeInterface:mainfrom
Conversation
|
Woah - one of the postdocs in my lab will love this! |
|
@alejoe91 I don't think you've commited the eventview |
|
done! |
|
@chrishalcrow ready to test for real! :) |
| self.sampling_frequency = self.analyzer.sampling_frequency | ||
|
|
||
| self.events = None | ||
| if events is not None: |
There was a problem hiding this comment.
Lets move this events handling in a separate function no ?
| import numpy as np | ||
| from .view_base import ViewBase | ||
|
|
||
| class EventView(ViewBase): |
There was a problem hiding this comment.
I think we need to discuss the behavior we want.
If I understand correctly this is a psth segment by segment only.
Maybe we should also have a cumulate across segmetn psth no ?
Also the name eventview is to explore event I would call this veiw spikeonevent no ?
|
Cool.
|
|
Hello, our behavior often has a different time support than our ephys (e.g. we start recording events before we start recording ephys). Would be good to cleanly handle event times that are outside of the ephys time interval. |
Ok, basically just filtering the events (if given in time) based on the recording start/end times? |
Events can be passed to the
run_mainwindoweither as a dict:In case of multi segment, the events must be list of lists/arrays.
Alternatively, one can use a
spikeinterface.BaseEventobject.The Trace/TraceMap views allow to go to previous/next event (and select event type in case of multiple).
A new
EventViewshows aligned rasters or PSTHs.Here's how it looks:
event-sigui.webm