Skip to main content

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

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.14.3.tar.gz (345.4 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.14.3-py3-none-any.whl (153.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sgn_ts-0.14.3.tar.gz
  • Upload date:
  • Size: 345.4 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.14.3.tar.gz
Algorithm Hash digest
SHA256 90eb178fb788371c4f1a32a58cdfb109a05c5680a822896f3366515edfb8de53
MD5 c4a1aa7f7c8a48e5abb5eaa0a24c7ec7
BLAKE2b-256 b49ef9cc4a77838acdae23ac46efc7e86f02d150a4d4db6812e15013e10ca42e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sgn_ts-0.14.3-py3-none-any.whl
  • Upload date:
  • Size: 153.5 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.14.3-py3-none-any.whl
Algorithm Hash digest
SHA256 61ce07e403f4d5d291c9f3f6cd3c424bff174357045c97d774b86efaf48b6bff
MD5 efcea3f1427d92aa07b6655340b18ec2
BLAKE2b-256 4a042739214b81d76dab7961e6ea49b2a8dfdd1709e7d435f3fc8d124f0958ba

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.14.3 This release

2 files

0.14.2

2 files

0.14.1

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.1

2 files

0.10.0

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page