Skip to content
Snippets Groups Projects
Commit dda2857a authored by Martin Reinecke's avatar Martin Reinecke Committed by Philipp Arras
Browse files

more fixes

parent 0442b931
No related branches found
No related tags found
1 merge request!418New apply
Pipeline #70592 failed
...@@ -88,7 +88,7 @@ class _ApplicationWithoutMeanOperator(EndomorphicOperator): ...@@ -88,7 +88,7 @@ class _ApplicationWithoutMeanOperator(EndomorphicOperator):
def apply(self, x, mode): def apply(self, x, mode):
self._check_input(x, mode) self._check_input(x, mode)
mean = x.mean() mean = x.s_mean()
return mean + self._op.apply(x - mean, mode) return mean + self._op.apply(x - mean, mode)
def __repr__(self): def __repr__(self):
......
...@@ -92,7 +92,7 @@ def get_signal_variance(spec, space): ...@@ -92,7 +92,7 @@ def get_signal_variance(spec, space):
field = PS_field(space, spec) field = PS_field(space, spec)
dist = PowerDistributor(space.harmonic_partner, space) dist = PowerDistributor(space.harmonic_partner, space)
k_field = dist(field) k_field = dist(field)
return k_field.weight(2).sum() return k_field.weight(2).s_sum()
def _single_power_analyze(field, idx, binbounds): def _single_power_analyze(field, idx, binbounds):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment