SGN-TS
SGN-TS extends the SGN streaming pipeline framework with time-series data types: precise offset-based timing, uniformly sampled buffers, frame alignment across multiple channels, and a library of signal processing elements.
Installation
pip install sgn-ts
For PyTorch-accelerated operations (resampling, array backends):
pip install sgn-ts[torch]
Quick Example
Generate a sine wave, amplify it, and collect the output:
from sgn import Pipeline
from sgnts.sources import FakeSeriesSource
from sgnts.transforms import Amplify
from sgnts.sinks import TSFrameCollectSink
src = FakeSeriesSource(
name="src",
source_pad_names=["out"],
signal_type="sin",
rate=2048,
duration=2,
)
amp = Amplify(name="amp", factor=3.0)
snk = TSFrameCollectSink(name="snk")
Pipeline().connect(src, amp).connect(amp, snk).run()
for frame in snk.data["out"]:
print(frame.offset, len(frame.buffers))
Documentation
Full documentation is available at docs.ligo.org/greg/sgn-ts.
Related Libraries
Release files for sgn-ts 0.14.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sgn_ts-0.14.5.tar.gz | 350.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sgn_ts-0.14.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 500.0 kB
Release files / sgn_ts-0.14.5.tar.gz
| Download URL | sgn_ts-0.14.5.tar.gz |
|---|---|
| Size | 350.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36bf2f895a505a274c52529dfc2728fe368c53fd0237ec06eab1478ec2d1e97a
|
|
BLAKE2b-256 checksum How to use checksums |
e51fbb4e1d7da92b64ffe501f8c39e9f84225aad977ed57267c2b4c8dc00f26d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
|
Release files / sgn_ts-0.14.5-py3-none-any.whl
| Download URL | sgn_ts-0.14.5-py3-none-any.whl |
|---|---|
| Size | 149.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53447204e8ba8d78482418f79e1cae68018dd091c1f9de9bd7a0669339f099cd
|
|
BLAKE2b-256 checksum How to use checksums |
914cd043edef15c4919dd5bd317af5802c6ab969c3afb3cef56ee96cca2f6563
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
|