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.4
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.4.tar.gz | 346.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sgn_ts-0.14.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 501.2 kB
Release files / sgn_ts-0.14.4.tar.gz
| Download URL | sgn_ts-0.14.4.tar.gz |
|---|---|
| Size | 346.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02146e0cb75aa574272e7979263c93ef325538bda05c29544e26c62cd3845925
|
|
BLAKE2b-256 checksum How to use checksums |
3895a48136b0a9fb78cf3b7bf94f2b447241b363e6df3a9c3a2bf6dc48e1ab7a
|
| 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.4-py3-none-any.whl
| Download URL | sgn_ts-0.14.4-py3-none-any.whl |
|---|---|
| Size | 154.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb1549637e2b24e9465d968e81330ab4401ea070a93efe018e61c01f688022a2
|
|
BLAKE2b-256 checksum How to use checksums |
88bbbba4cb205204e99f6132de57f381d3f3c1369a16c4e695058fbea1ca7e03
|
| 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
|