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.9.2.tar.gz (237.2 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.9.2-py3-none-any.whl (110.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sgn_ts-0.9.2.tar.gz
  • Upload date:
  • Size: 237.2 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.9.2.tar.gz
Algorithm Hash digest
SHA256 0dd9173172f9aba0585130fccf2a6596bf88bd8023ac446dacb869ae450cd67b
MD5 123dc303f5d8112648102d124b09a84d
BLAKE2b-256 99b47259d44e7249b3b387c95e8df0e5cec0b972c51d15a1782404bef1e02682

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sgn_ts-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 110.4 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.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b580a317f4d7580badbdd89d9bb588cb3268f7785f4e599698cb6c0f0f8770ab
MD5 53f741456a79b1d6c3e1720a9032a5cd
BLAKE2b-256 4e5078d79b5055de542ac9988d29f6da62882f9d6de79ff6f7338d32a47b5996

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