Skip to content
Merged
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion src/ezmsg/sigproc/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

import math
import typing

import ezmsg.core as ez
Expand Down Expand Up @@ -165,7 +166,7 @@ def push_b(self, message: AxisArray) -> AxisArray | None:

# Gain compatibility check.
b_gain = self._extract_gain(message)
if self._state.gain is not None and b_gain != self._state.gain:
if self._state.gain is not None and not math.isclose(b_gain, self._state.gain):
self._full_reset(align_axis)
# Set the base-class hash so the next compatible A goes straight
# to _process instead of triggering another full reset.
Expand Down