Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
6c65107
Windowing - track timestamps with arithmetic rather than expensive bu…
cboulay Aug 9, 2025
f098bb4
Windowing - fixed a bug in test; windowing code unaffected.
cboulay Aug 9, 2025
0f8114f
Align test_window_generator and test_sparse_window to be as similar a…
cboulay Aug 10, 2025
21f97f5
First commit of HybridBuffer
cboulay Aug 10, 2025
eefde76
Make HybridBuffer ArrayAPI compatible
cboulay Aug 10, 2025
3662533
HybridBuffer - prefer modern typing annotations
cboulay Aug 10, 2025
0aa5f52
First commit for HybridAxisArrayBuffer
cboulay Aug 10, 2025
1d79566
Refactor HybridBuffer as FIFO instead of LIFO.
cboulay Aug 11, 2025
0c5731f
Update HybridAxisArrayBuffer to use new FIFO HybridBuffer.
cboulay Aug 11, 2025
4f7a436
HybridBuffer - don't sync when n_unread property is read.
cboulay Aug 11, 2025
dd59ea0
HybridBuffer - add `peek` and `skip` and implement `get_data` using t…
cboulay Aug 11, 2025
82a2f86
HybridAxisArrayBuffer - add `peek` and `skip` and implement `get_data…
cboulay Aug 11, 2025
689c857
Add prune, peek_padded, and get_data_padded methods to buffer classes…
cboulay Aug 12, 2025
238f393
test_sampler - prefer new class API over generator API.
cboulay Aug 12, 2025
b4db891
HybridAxisArrayBuffer - improve `searchsorted` API.
cboulay Aug 12, 2025
8b57fa9
rename `maxlen` to `capacity` in anticipation of future changes.
cboulay Aug 12, 2025
45dbd34
Dramatically change `HybridBuffer` API.
cboulay Aug 13, 2025
09cf30d
Add new `HybridAxisBuffer` for buffering axes objects.
cboulay Aug 13, 2025
417f313
HybridBuffer preliminary docs
cboulay Aug 13, 2025
b62c4d2
Update HybridAxisArrayBuffer to use HybridAxisBuffer
cboulay Aug 13, 2025
1796d12
Update HybridBuffer with different overflow strategies.
cboulay Aug 14, 2025
a28f0af
Update HybridBuffer with different overflow strategies.
cboulay Aug 14, 2025
9e9372b
`HybridAxisBuffer` - add a couple copies to fix external mutations.
cboulay Aug 14, 2025
de65fc7
`HybridAxisArrayBuffer` - minor touchups
cboulay Aug 14, 2025
e87db92
`HybridAxisArrayBuffer` - minor touchups including no longer managing…
cboulay Aug 14, 2025
7a16eb7
Update buffer tests
cboulay Aug 14, 2025
8cb0a1b
resample now uses hybrid buffers
cboulay Aug 14, 2025
75d0f4f
HybridAxisArrayBuffer permutes targ axis to 0th dim; resample can sto…
cboulay Aug 14, 2025
aabc321
uv add --group profile snakeviz
cboulay Aug 14, 2025
302d015
HybridAxis -- faster way to get the last sample.
cboulay Aug 14, 2025
6f4d208
resample micro-optimizations.
cboulay Aug 14, 2025
7c8f7d3
update_strategy="immediate" seems to be faster
cboulay Aug 14, 2025
3d3acac
Add warn_once option to HybridBuffer when using warn-overwrite strategy.
cboulay Aug 14, 2025
f4f1953
n/t
cboulay Aug 14, 2025
60906d5
Add some helper methods to axisarray_buffer.py
cboulay Aug 14, 2025
76d2142
Add some helper methods to axisarray_buffer.py
cboulay Aug 14, 2025
00febeb
n/t
cboulay Aug 14, 2025
4884fb7
sampler uses HybridAxisArrayBuffer
cboulay Aug 14, 2025
ce9f980
update test_axisarray_buffer to reflect that searchsorted on linear a…
cboulay Aug 15, 2025
5f6c8cd
update test_axisarray_buffer to reflect that linear axis now overflows.
cboulay Aug 15, 2025
5806d7e
sampler - make trig range an array for searchsorted support
cboulay Aug 15, 2025
8c256bc
Improved buffer performance when update_strategy is 'on_demand' by fu…
cboulay Aug 15, 2025
80c22af
whitespace
cboulay Aug 15, 2025
4a54445
Update HybridBuffer documentation.
cboulay Aug 15, 2025
ca2c95d
Fix incorrect text.
cboulay Aug 15, 2025
abcae80
Small text fixes
cboulay Aug 15, 2025
2dbf675
HybridBuffer - Enable intelligent 2-stage reads to prevent overflow.
cboulay Aug 16, 2025
4b0cbe9
HybridBuffer - Eliminate the intermediate copy from deque -> all_new_…
cboulay Aug 16, 2025
0dc5267
HybridBuffer - small docstring update.
cboulay Aug 16, 2025
62a9db0
HybridBuffer - raise OverflowError immediately on write when it is in…
cboulay Aug 16, 2025
68a1664
Moving sigproc-specific docs from ezmsg to ezmsg-sigproc
cboulay Oct 28, 2025
de5c0ea
Move sigproc tutorial from base ezmsg to ezmsg-sigproc
cboulay Oct 28, 2025
3187af2
Move sigproc explanation from base ezmsg to ezmsg-sigproc
cboulay Oct 28, 2025
553619b
Move sigproc how-tos from base ezmsg to ezmsg-sigproc
cboulay Oct 28, 2025
cd7aced
Update docs
cboulay Oct 30, 2025
adf3a85
Merge pull request #103 from ezmsg-org/75-hybrid-time-series-buffer
cboulay Oct 30, 2025
5dfcded
Merge pull request #108 from ezmsg-org/docs
cboulay Oct 30, 2025
b37316f
firfilter design
griffinmilsap Oct 8, 2025
49c7a03
Add BA to SOS conversion step
cboulay Oct 30, 2025
be4ce8f
Add tests and docs for firfilter and kaiser
cboulay Oct 30, 2025
ede8cf1
Merge pull request #105 from ezmsg-org/feature/firfilter-design
cboulay Oct 30, 2025
859ae03
filterbank design
griffinmilsap Oct 8, 2025
baa1f00
relative imports
griffinmilsap Oct 8, 2025
28365fe
filterbankdesign unit tests and docs stub
cboulay Oct 30, 2025
1d39673
fbcca implementation
griffinmilsap Oct 8, 2025
e22522d
fbcca - more docstrings
cboulay Oct 30, 2025
c7b9813
fbcca - add doc stub and unit tests
cboulay Oct 30, 2025
0e6a886
Merge pull request #106 from ezmsg-org/feature/filterbank-design
cboulay Oct 30, 2025
9b2eb55
fbcca - fixed bug when using softmax with multi-dimensional data due …
cboulay Oct 30, 2025
fba9670
Merge pull request #107 from ezmsg-org/feature/fbcca
cboulay Oct 30, 2025
cc7aed6
Add version to docs
cboulay Oct 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Documentation

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- dev
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed for hatch-vcs to determine version

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
python-version: "3.12"

- name: Install the project
run: uv sync --only-group docs

- name: Build documentation
run: |
cd docs
uv run make html

- name: Add .nojekyll file
run: touch docs/build/html/.nojekyll

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/build/html'

deploy:
# Only deploy on push to main or release tags
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ instance/

# Sphinx documentation
docs/_build/
docs/build/
docs/source/_build
docs/source/generated
docs/source/api/generated

# PyBuilder
.pybuilder/
Expand Down
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
4 changes: 4 additions & 0 deletions docs/img/HybridBufferBasic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/img/HybridBufferOverflow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:end
popd
64 changes: 64 additions & 0 deletions docs/source/_templates/autosummary/module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{{ fullname | escape | underline}}

.. automodule:: {{ fullname }}

{% block attributes %}
{% if attributes %}
.. rubric:: Module Attributes

.. autosummary::
:toctree:
{% for item in attributes %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block functions %}
{% if functions %}
.. rubric:: Functions

{% for item in functions %}
.. autofunction:: {{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block classes %}
{% if classes %}
.. rubric:: Classes

{% for item in classes %}
.. autoclass:: {{ item }}
:members:
:undoc-members:
:show-inheritance:
:special-members: __init__
{%- endfor %}
{% endif %}
{% endblock %}

{% block exceptions %}
{% if exceptions %}
.. rubric:: Exceptions

{% for item in exceptions %}
.. autoexception:: {{ item }}
:members:
:show-inheritance:
{%- endfor %}
{% endif %}
{% endblock %}

{% block modules %}
{% if modules %}
.. rubric:: Modules

.. autosummary::
:toctree:
:recursive:
{% for item in modules %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
157 changes: 157 additions & 0 deletions docs/source/api/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
API Reference
=============

This page contains the complete API reference for ``ezmsg.sigproc``.

.. contents:: Modules
:local:
:depth: 1

Base Processors
---------------

Core processor protocols and base classes.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.base

Filtering
---------

Various filter implementations for signal processing.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.filter
ezmsg.sigproc.butterworthfilter
ezmsg.sigproc.cheby
ezmsg.sigproc.combfilter
ezmsg.sigproc.adaptive_lattice_notch
ezmsg.sigproc.firfilter
ezmsg.sigproc.kaiser
ezmsg.sigproc.ewmfilter
ezmsg.sigproc.filterbank
ezmsg.sigproc.filterbankdesign
ezmsg.sigproc.gaussiansmoothing

Spectral Analysis
-----------------

Spectral and frequency domain analysis tools.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.spectral
ezmsg.sigproc.spectrogram
ezmsg.sigproc.spectrum
ezmsg.sigproc.wavelets
ezmsg.sigproc.bandpower
ezmsg.sigproc.fbcca

Sampling & Resampling
---------------------

Signal sampling, windowing, and resampling operations.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.sampler
ezmsg.sigproc.window
ezmsg.sigproc.resample
ezmsg.sigproc.downsample
ezmsg.sigproc.decimate

Signal Conditioning
-------------------

Signal preprocessing and conditioning operations.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.scaler
ezmsg.sigproc.detrend
ezmsg.sigproc.activation
ezmsg.sigproc.quantize
ezmsg.sigproc.ewma

Transformations
---------------

Geometric and structural transformations.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.affinetransform
ezmsg.sigproc.transpose
ezmsg.sigproc.extract_axis
ezmsg.sigproc.slicer

Signal Operations
-----------------

Aggregation, difference, and other signal operations.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.aggregate
ezmsg.sigproc.diff

Signal Generation
-----------------

Synthetic signal generators and injectors.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.synth
ezmsg.sigproc.signalinjector

Messages & Data Structures
---------------------------

Message types and data structures.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.messages

Math Utilities
--------------

Mathematical operations on signals.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.math

Utilities
---------

Helper utilities for signal processing.

.. autosummary::
:toctree: generated
:recursive:

ezmsg.sigproc.util
Loading