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.1.tar.gz (264.3 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.1-py3-none-any.whl (128.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sgn_ts-0.10.1.tar.gz
  • Upload date:
  • Size: 264.3 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.1.tar.gz
Algorithm Hash digest
SHA256 9dac2ab06fcb8738da4175a11317e944ee2f919d334615bd8e58d803ccd2fba8
MD5 5527dec332d51867ec926407fb060007
BLAKE2b-256 a7453add1501bf97ca37ec911a2a9366f22b11b127259fdcb7e7d6d05cb3b383

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sgn_ts-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 128.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49c0f67de0e2fa453c920330268b14fc4382d0055aa9f0647f9a04d27e2d2247
MD5 68b9fa29a3628dafc17ca2a1a771d6e6
BLAKE2b-256 5fa72e8cb6e5ca3dc2b482263a8a5f31cf57da3f44aad5240eeeccb87cf8687b

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