You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Timeseries signal processing implementations for ezmsg
3
+
## Overview
4
4
5
-
## Dependencies
6
-
7
-
*`ezmsg`
8
-
*`numpy`
9
-
*`scipy`
10
-
*`pywavelets`
5
+
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.
11
6
12
7
## Installation
13
8
14
-
### Release
15
-
16
9
Install the latest release from pypi with: `pip install ezmsg-sigproc` (or `uv add ...` or `poetry add ...`).
17
10
18
-
### Development Version
11
+
You can install pre-release versions directly from GitHub:
19
12
20
-
You can add the development version of `ezmsg-sigproc` to your project's dependencies in one of several ways.
13
+
* Using `pip`: `pip install git+https://github.com/ezmsg-org/ezmsg-sigproc.git@dev`
14
+
* Using `uv`: `uv add git+https://github.com/ezmsg-org/ezmsg-sigproc --branch dev`
15
+
* Using `poetry`: `poetry add "git+https://github.com/ezmsg-org/ezmsg-sigproc.git@dev"`
21
16
22
-
You can clone it and add its path to your project dependencies. You may wish to do this if you intend to edit `ezmsg-sigproc`. If so, please refer to the [Developers](#developers) section below.
17
+
> See the [Development](#development) section below for installing with the intention of developing.
23
18
24
-
You can also add it directly from GitHub:
19
+
## Source layout & key modules
20
+
* 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.
21
+
* The framework’s backbone is base.py, defining standard protocols—Processor, Producer, Consumer, and Transformer—that enable both stateless and stateful processing chains.
22
+
* Filtering is implemented in filter.py, providing settings dataclasses and a stateful transformer that applies supplied coefficients to incoming data.
23
+
* Spectral analysis uses a composite spectrogram transformer chaining windowing, spectrum computation, and axis adjustments.
25
24
26
-
* Using `pip`: `pip install git+https://github.com/ezmsg-org/ezmsg-sigproc.git@dev`
27
-
* Using `poetry`: `poetry add "git+https://github.com/ezmsg-org/ezmsg-sigproc.git@dev"`
28
-
* Using `uv`: `uv add git+https://github.com/ezmsg-org/ezmsg-sigproc --branch dev`
25
+
## Operating styles: Standalone processors vs. ezmsg pipelines
26
+
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.
27
+
28
+
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:
29
+
30
+
* Standalone processors: Low overhead, ideal for one‑off or exploratory offline tasks.
31
+
* 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.
32
+
33
+
## Documentation & tests
34
+
*`docs/ProcessorsBase.md` details the processor hierarchy and generic type patterns, providing a solid foundation for custom components.
35
+
* Unit tests (e.g., `tests/unit/test_sampler.py`) offer concrete examples of usage, showcasing sampler generation, windowing, and message handling.
36
+
37
+
## Where to learn next
38
+
* Study docs/ProcessorsBase.md to master the processor architecture.
39
+
* Explore unit tests for hands‑on examples of composing processors and Units.
40
+
* Review the ezmsg framework in pyproject.toml to understand the surrounding ecosystem.
41
+
* Experiment with the code—try running processors standalone and then integrate them into a small pipeline to observe the trade‑offs firsthand.
42
+
43
+
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.
29
44
30
-
## Developers
45
+
## Development
31
46
32
47
We use [`uv`](https://docs.astral.sh/uv/getting-started/installation/) 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.
33
48
@@ -36,4 +51,5 @@ We use [`uv`](https://docs.astral.sh/uv/getting-started/installation/) for devel
36
51
3. Open a terminal and `cd` to the cloned folder.
37
52
4.`uv sync` to create a .venv and install dependencies.
38
53
5.`uv run pre-commit install` to install pre-commit hooks to do linting and formatting.
39
-
6. After editing code and making commits, Run the test suite before making a PR: `uv run pytest tests`
54
+
6. Run the test suite before finalizing your edits: `uv run pytest tests`
55
+
7. Make a PR against the `dev` branch of the main repo.
0 commit comments