Skip to main content

TimeSeries Extensions for SGN Framework

Project description

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

  • sgn: Base streaming pipeline framework
  • sgn-ligo: LIGO-specific utilities for SGN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sgn_ts-0.10.0.tar.gz (260.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sgn_ts-0.10.0-py3-none-any.whl (127.9 kB view details)

Uploaded Python 3

File details

Details for the file sgn_ts-0.10.0.tar.gz.

File metadata

  • Download URL: sgn_ts-0.10.0.tar.gz
  • Upload date:
  • Size: 260.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1

File hashes

Hashes for sgn_ts-0.10.0.tar.gz
Algorithm Hash digest
SHA256 d208c7810ca55d20b6c411ea8b7b04d5f0a4663f00c3e717b4378d3a5f4ed810
MD5 6240792a3be133aa3427498b3bdd3c13
BLAKE2b-256 12e770c6a1f9c9de406ba888f9db4ed30a311e9991ad53ec2fed333ff4069e2c

See more details on using hashes here.

File details

Details for the file sgn_ts-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: sgn_ts-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 127.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1

File hashes

Hashes for sgn_ts-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 074e14f3bd60e550026547b81104cd5fbc7d30edb9280eaf2b2c73bba620e486
MD5 168db1b7e9fdcfc778523361ec8c0b0b
BLAKE2b-256 fb47292dab0d95fa12d69e73dad53eec0ce2a466fd35e76f541534aeb0ea6424

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page