Removed useless if
@@ -1197,7 +1197,6 @@ class MapDatasetOnOff(MapDataset):
if not self._is_stackable() or not other._is_stackable():
raise ValueError("Cannot stack incomplete MapDatsetOnOff.")
- if self.alpha and other.alpha and self.counts_off and other.counts_off:
# Factor containing: self.alpha * self.counts_off + other.alpha * other.counts_off
tmp_factor = (self.alpha * self.counts_off).copy()
tmp_factor.data[~self.mask_safe] = 0
