Skip to content
Snippets Groups Projects
Commit e40a50a8 authored by Yun-Jing Huang's avatar Yun-Jing Huang
Browse files

update

parent 3f10ba7b
No related branches found
No related tags found
1 merge request!70add sgn event classes
Pipeline #681561 passed
......@@ -24,7 +24,7 @@ from sgnts.base.array_ops import (
TorchBackend,
)
from sgnts.base.audioadapter import Audioadapter
from sgnts.base.buffer import SeriesBuffer, TSFrame
from sgnts.base.buffer import EventBuffer, EventFrame, SeriesBuffer, TSFrame
from sgnts.base.offset import Offset
from sgnts.base.slice_tools import TSSlice, TSSlices
from sgnts.base.time import Time
......
......@@ -23,14 +23,13 @@ from sgnts.base.time import Time
class EventBuffer:
"""Event buffer with associated metadata.
Parameters
----------
ts: int
Start time of event buffer in ns
te: int
End time of event buffer in ns
data: Any
Data of the event
Args:
ts:
int, Start time of event buffer in ns
te:
int, End time of event buffer in ns
data:
Any, Data of the event
"""
ts: int = None
......@@ -108,13 +107,11 @@ class EventBuffer:
@dataclass
class EventFrame(Frame):
"""An sgn Frame object that holds a dictionary of events
Parameters
----------
events : dict
Dictionary of EventBuffers
"""An sgn Frame object that holds a dictionary of events.
Args:
events:
dict, Dictionary of EventBuffers
"""
events: dict = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment