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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sgn_ts-0.9.1.tar.gz
  • Upload date:
  • Size: 234.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for sgn_ts-0.9.1.tar.gz
Algorithm Hash digest
SHA256 d9b7368bcf738a60ea1392f266164f6dfcf892dc0604337c52171b69c1613d54
MD5 9d84052b667e1cf2df1e925b18198834
BLAKE2b-256 c2d8b9b384c176d8304e63ed54ae0192b70ab785d1dbce56e00c6a91982a36c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sgn_ts-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 108.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for sgn_ts-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03c8cf68099e731a941ec48447730568d91cf1a60c991c585762999b29cd9493
MD5 fd9989d90fc7d7f60ff06ef3ecf813bf
BLAKE2b-256 fc44efb0fe605252a440b13e105eba22614e5c898c9948e6531d716facf99275

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