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.11.0.tar.gz (265.7 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.11.0-py3-none-any.whl (129.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sgn_ts-0.11.0.tar.gz
  • Upload date:
  • Size: 265.7 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.11.0.tar.gz
Algorithm Hash digest
SHA256 058170b3a9054ebe8da514576c39fe33064ab5cbd96ec6c0780b7215aba2c992
MD5 037e3950b43bdc4003698767ecb17567
BLAKE2b-256 1e5dcf560709258ec22bbba73a00a7c275b0aa30b2a2531636e2fc54aa97d211

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sgn_ts-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 129.0 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.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01cc60f24bece4ed48b1d6c6c6a46e94a224ba262fe20649b447cd05075d6c52
MD5 fb636279171e65cfbea06d1a024cabb4
BLAKE2b-256 f18e828105a95523a90f6b265b4ba49d4421dba345ea36eb223adb4b4bdca7a4

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