Skip to content

Scope binning docstrings; drop binned_aggregate factory#159

Merged
cboulay merged 2 commits into
devfrom
scope-binning-docs
Jun 26, 2026
Merged

Scope binning docstrings; drop binned_aggregate factory#159
cboulay merged 2 commits into
devfrom
scope-binning-docs

Conversation

@cboulay

@cboulay cboulay commented Jun 26, 2026

Copy link
Copy Markdown
Member

Two changes to the binning modules added in 2.26.0:

1. Scope the docstrings (doc-only)

The BinSchedule / BinnedAggregate docstrings described a specific downstream consumer pipeline that public users won't recognize — named "SBP path" / "spike-rate branch", "real recordings", "merge trivially with no post-hoc reconciler". Reworded in terms of the packages themselves (EventRate, Window, BinSchedule, Merge) and the generic condition that triggers the divergence (bin_duration * fs not an integer). Also dropped the "wall-clock" framing for "each bin spans exactly bin_duration in the input's time base".

2. Remove the binned_aggregate() factory function (API change)

The small functional-constructor helpers are a deprecated pattern that new modules shouldn't add; binned_aggregate.py is new in 2.26.0. Construct via BinnedAggregateTransformer(BinnedAggregateSettings(...)) instead. Nothing depends on the factory yet, so it's removed outright — a patch release will follow.

Binning tests still pass (39). Companion to the doc-scoping + factory-removal commits in ezmsg-event PR #33.

cboulay added 2 commits June 26, 2026 01:44
The BinSchedule and BinnedAggregate docstrings described a specific consumer
pipeline ("the SBP path", "the spike-rate branch", "real recordings", "merge
trivially with no post-hoc reconciler") that public users of these packages
won't recognize. Reword in terms of the packages themselves: EventRate, Window,
BinSchedule, and Merge, and the generic case where bin_duration*fs is not an
integer. Also drop the "wall-clock" framing in favor of "each bin spans exactly
bin_duration in the input's time base". Comment-only.
The small functional-constructor helpers are a deprecated pattern that new
modules shouldn't add; binned_aggregate.py is new in 2.26.0. Use
BinnedAggregateTransformer(BinnedAggregateSettings(...)) instead. Nothing
depends on the factory yet, so it is removed outright (a patch release will
follow).
@cboulay cboulay changed the title Scope binning docstrings to ezmsg-sigproc/ezmsg-event Scope binning docstrings; drop binned_aggregate factory Jun 26, 2026
@cboulay cboulay merged commit 250b28c into dev Jun 26, 2026
15 of 26 checks passed
@cboulay cboulay deleted the scope-binning-docs branch June 26, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant