Skip to main content

ezmsg.sigproc

Overview

ezmsg-sigproc offers timeseries signal‑processing primitives built atop the ezmsg message‑passing framework. Core dependencies include ezmsg, numpy, scipy, pywavelets, and sparse; the project itself is managed through hatchling and uses VCS hooks to populate version.py.

Installation

Install the latest release from pypi with: pip install ezmsg-sigproc (or uv add ... or poetry add ...).

You can install pre-release versions directly from GitHub:

  • Using pip: pip install git+https://github.com/ezmsg-org/ezmsg-sigproc.git@dev
  • Using uv: uv add git+https://github.com/ezmsg-org/ezmsg-sigproc --branch dev
  • Using poetry: poetry add "git+https://github.com/ezmsg-org/ezmsg-sigproc.git@dev"

See the Development section below for installing with the intention of developing.

Source layout & key modules

  • All source resides under src/ezmsg/sigproc, which contains a suite of processors (for example, filter.py, spectrogram.py, spectrum.py, sampler.py) and math and util subpackages.
  • The framework’s backbone is base.py, defining standard protocols—Processor, Producer, Consumer, and Transformer—that enable both stateless and stateful processing chains.
  • Filtering is implemented in filter.py, providing settings dataclasses and a stateful transformer that applies supplied coefficients to incoming data.
  • Spectral analysis uses a composite spectrogram transformer chaining windowing, spectrum computation, and axis adjustments.

Operating styles: Standalone processors vs. ezmsg pipelines

While each processor is designed to be assembled into an ezmsg pipeline, the components are also well‑suited for offline, ad‑hoc analysis. You can instantiate processors directly in scripts or notebooks for quick prototyping or to validate results from other code. The companion Unit wrappers, however, are meant for assembling processors into a full ezmsg pipeline.

A fully defined ezmsg pipeline shines in online streaming scenarios where message routing, scheduling, and latency handling are crucial. Nevertheless, you can run the same pipeline offline—say, within a Jupyter notebook—if your analysis benefits from ezmsg’s structured execution model. Deciding between a standalone processor and a full pipeline comes down to the trade‑off between simplicity and the operational overhead of the pipeline:

  • Standalone processors: Low overhead, ideal for one‑off or exploratory offline tasks.
  • Pipeline + Unit wrappers: Additional setup cost but bring concurrency, standardized interfaces, and automatic message flow—useful when your offline experiment mirrors a live system or when you require fine‑grained pipeline behavior.

Documentation & tests

  • docs/ProcessorsBase.md details the processor hierarchy and generic type patterns, providing a solid foundation for custom components.
  • Unit tests (e.g., tests/unit/test_sampler.py) offer concrete examples of usage, showcasing sampler generation, windowing, and message handling.

Where to learn next

  • Study docs/ProcessorsBase.md to master the processor architecture.
  • Explore unit tests for hands‑on examples of composing processors and Units.
  • Review the ezmsg framework in pyproject.toml to understand the surrounding ecosystem.
  • Experiment with the code—try running processors standalone and then integrate them into a small pipeline to observe the trade‑offs firsthand.

This approach equips newcomers to choose the right level of abstraction—raw processor, Unit wrapper, or full pipeline—based on the demands of their analysis or streaming application.

Development

We use uv for development. It is not strictly required, but if you intend to contribute to ezmsg-sigproc then using uv will lead to the smoothest collaboration.

  1. Install uv if not already installed.
  2. Fork ezmsg-sigproc and clone your fork to your local computer.
  3. Open a terminal and cd to the cloned folder.
  4. uv sync to create a .venv and install dependencies.
  5. uv run pre-commit install to install pre-commit hooks to do linting and formatting.
  6. Run the test suite before finalizing your edits: uv run pytest tests
  7. Make a PR against the dev branch of the main repo.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezmsg_sigproc-2.4.1.tar.gz (205.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ezmsg_sigproc-2.4.1-py3-none-any.whl (108.0 kB view details)

Uploaded Python 3

File details

Details for the file ezmsg_sigproc-2.4.1.tar.gz.

File metadata

  • Download URL: ezmsg_sigproc-2.4.1.tar.gz
  • Upload date:
  • Size: 205.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ezmsg_sigproc-2.4.1.tar.gz
Algorithm Hash digest
SHA256 b7efdaf30f2d793754149b31ade27660f7beecabd32781733e9362a5b6375c40
MD5 9411d728a5bba4315a885567cbb461f0
BLAKE2b-256 70ed4ac2ec2d240c617d861d84f933dc3920e19695cca1f7d62c4c9e38a21b90

See more details on using hashes here.

File details

Details for the file ezmsg_sigproc-2.4.1-py3-none-any.whl.

File metadata

  • Download URL: ezmsg_sigproc-2.4.1-py3-none-any.whl
  • Upload date:
  • Size: 108.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ezmsg_sigproc-2.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83818b1b3495249fb8240c372540708823caff9e6c8a4274bfdeb2c1a42802a5
MD5 155e7960dba6a90b684985ecc6164871
BLAKE2b-256 25f52972729f3e00a8c9f7658baa460e5bb40ae78b16d7aa26d8edffa7f0f94d

See more details on using hashes here.

Release history Release notifications | RSS feed

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