diff --git a/esbo_etc/classes/SpectralQty.py b/esbo_etc/classes/SpectralQty.py index 85216ec..c5be7f7 100644 --- a/esbo_etc/classes/SpectralQty.py +++ b/esbo_etc/classes/SpectralQty.py @@ -248,7 +248,7 @@ class SpectralQty: The rebinned spectral quantity """ - if wl.unit != self.wl.unit: + if not wl.unit.is_equivalent(self.wl.unit): error("Mismatching units for rebinning: " + wl.unit + ", " + self.wl.unit) if not self._extrapolate: if min(wl) < min(self.wl) or max(wl) > max(self.wl):