Skip to content

Conversation

@alejoe91
Copy link
Member

@alejoe91 alejoe91 commented Nov 27, 2025

Events can be passed to the run_mainwindow either as a dict:

{
    "event_key": {
         "samples": [.....], # or time
    }
}

In case of multi segment, the events must be list of lists/arrays.

Alternatively, one can use a spikeinterface.BaseEvent object.

The Trace/TraceMap views allow to go to previous/next event (and select event type in case of multiple).
A new EventView shows aligned rasters or PSTHs.
Here's how it looks:

event-sigui.webm
  • panel Trace/TraceMap

@chrishalcrow
Copy link
Member

Woah - one of the postdocs in my lab will love this!

@chrishalcrow
Copy link
Member

@alejoe91 I don't think you've commited the eventview

@alejoe91
Copy link
Member Author

done!

@alejoe91
Copy link
Member Author

@chrishalcrow ready to test for real! :)

self.sampling_frequency = self.analyzer.sampling_frequency

self.events = None
if events is not None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets move this events handling in a separate function no ?

import numpy as np
from .view_base import ViewBase

class EventView(ViewBase):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ?

@samuelgarcia
Copy link
Member

Cool.
TODO:

  • psth and raster should gather acrros segments
  • we should have an event_tools.py
  • we should have lines and rates for the psth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants