Fix HPX map stacking for equivalent maps
@@ -379,9 +379,11 @@ class HpxNDMap(HpxMap):
raise ValueError("Incompatible spatial geoms between map and weights")
data = data * weights.data
+ if idx is None:
+ self.data += data
+ else:
self.data[..., idx] += data
-
def smooth(self, width, kernel="gauss"):
"""Smooth the map.
