From 91032b524b765312d5e9f2da785e61787b15a91c Mon Sep 17 00:00:00 2001 From: Martin Reinecke <martin@mpa-garching.mpg.de> Date: Tue, 14 Nov 2017 16:39:55 +0100 Subject: [PATCH] pedantic change --- nifty/field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifty/field.py b/nifty/field.py index 8a7a045d8..fa6481a19 100644 --- a/nifty/field.py +++ b/nifty/field.py @@ -313,7 +313,7 @@ class Field(object): new_shape[self.domain.axes[ind][0]: self.domain.axes[ind][-1]+1] = wgt.shape wgt = wgt.reshape(new_shape) - if ind == 0: # we need to distribute the weights along axis 0 + if dobj.distaxis(self._val) >= 0 and ind == 0: # we need to distribute the weights along axis 0 wgt = dobj.local_data(dobj.from_global_data(wgt)) out *= wgt**power fct = fct**power -- GitLab