Skip to content
Snippets Groups Projects

Fix histogram on data with no saturation value

Merged Loïc Le Guyader requested to merge boz-hist into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -524,9 +524,9 @@ def histogram_module(proposalNB, runNB, moduleNB, mask=None):
w = da.repeat(da.repeat(da.array(mask[None, None, :, :]),
arr.shape[1], axis=1), arr.shape[0], axis=0)
w = w.rechunk((100, -1, -1, -1))
return da.bincount(arr.ravel(), w.ravel()).compute()
return da.bincount(arr.ravel(), w.ravel(), minlength=512).compute()
else:
return da.bincount(arr.ravel()).compute()
return da.bincount(arr.ravel(), minlength=512).compute()
def inspect_histogram(proposalNB, runNB, moduleNB,
Loading