Skip to content

BinnedEventAggregator applies a live settings change to its binner (#43) - #51

Merged
cboulay merged 1 commit into
devfrom
fix/binned-update-settings
Nov 30, 2026
Merged

cboulay merged 1 commit into
devfrom
fix/binned-update-settings

Conversation

@cboulay

@cboulay cboulay commented Nov 30, 2026

Copy link
Copy Markdown
Member

Closes #43.

BinnedEventAggregator built its inner BinnedAggregateTransformer once, in __init__. A live update_settings replaced self.settings but never reached the binner, so a new bin_duration (or fractional) was ignored. Units rebuild the processor when settings change, which hid the problem there.

Changes

  • binned.py: the binner's settings come from a new _binner_settings(). update_settings now passes them on to the binner, which resets itself only if a bin setting changed. Changing scale_output therefore keeps the open partial bin.
  • Tests: new test that update_settings changes the bin width, and that a change the binner doesn't use keeps its open bin. It fails without the fix.

Testing

  • Full suite passes against ezmsg-sigproc 3.14.0 and ezmsg-baseproc 1.19.0. ruff clean.

@cboulay
cboulay merged commit 7fdd94a into dev Nov 30, 2026
4 checks passed
@cboulay
cboulay deleted the fix/binned-update-settings branch November 30, 2026 06:03
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