Commit d4f1f2b4 authored by Philipp Arras's avatar Philipp Arras
Browse files

Samples might have a different domain than the mean

parent c9c60ab4
Pipeline #88089 passed with stages
in 14 minutes and 8 seconds
......@@ -460,7 +460,7 @@ def _comp_chisq(op, energy, keylen):
mean = {kk: StatCalculator() for kk in keys}
ndof = {}
for ii, ss in enumerate(s):
rr = op(p + ss)
rr = op.force(p.unite(ss))
for kk in keys:
redchisq[kk].add(np.nansum(abs(rr[kk].val) ** 2) / rr[kk].size)
mean[kk].add(np.nanmean(rr[kk].val))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment