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.8.0.tar.gz (223.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.8.0-py3-none-any.whl (98.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sgn_ts-0.8.0.tar.gz
Algorithm Hash digest
SHA256 8ed323a4b30b97cbc6bfe888d0cee37132ca2640a141fbd5ace2ed0617931fc7
MD5 b4658b46750f1964f86751a4bd228aaa
BLAKE2b-256 6dcd099d0aba3ee989b4f644397ee685f9a553e893cb395c26b00959fb8305f7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sgn_ts-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31cd113a96bccf408f64cbc93355fc8e100e54e8baebb9724e3582f856670e45
MD5 d2a3dde5d3818b5c79f6e8917e2b6a81
BLAKE2b-256 3206ca2c89001a870927591c8092d2a97671c491650a43d6c7bd8c22bcb2ced0

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