Skip to content

MergeProcessor - compare time gains with math.isclose instead of ==#133

Merged
cboulay merged 1 commit intodevfrom
merge_gain_isclose
Feb 11, 2026
Merged

MergeProcessor - compare time gains with math.isclose instead of ==#133
cboulay merged 1 commit intodevfrom
merge_gain_isclose

Conversation

@cboulay
Copy link
Member

@cboulay cboulay commented Feb 11, 2026

The MergeProcessor was unnecessarily resetting its state because the two inputs' sample rate (time axis 'gain') differed only by floating point error. Using math.isclose is better than ==.

@cboulay cboulay merged commit b4b88af into dev Feb 11, 2026
14 checks passed
@cboulay cboulay deleted the merge_gain_isclose branch February 11, 2026 05:35
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