Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sgn-ts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
greg
sgn-ts
Commits
e40a50a8
Commit
e40a50a8
authored
5 months ago
by
Yun-Jing Huang
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
3f10ba7b
No related branches found
No related tags found
1 merge request
!70
add sgn event classes
Pipeline
#681561
passed
5 months ago
Stage: build
Stage: test
Stage: .post
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sgnts/base/__init__.py
+1
-1
1 addition, 1 deletion
src/sgnts/base/__init__.py
src/sgnts/base/buffer.py
+11
-14
11 additions, 14 deletions
src/sgnts/base/buffer.py
with
12 additions
and
15 deletions
src/sgnts/base/__init__.py
+
1
−
1
View file @
e40a50a8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/sgnts/base/buffer.py
+
11
−
14
View file @
e40a50a8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment