Skip to content

Commit

Permalink
Fix mask for naive_stack.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Jun 28, 2024
1 parent c7f4e43 commit c369c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rail/estimation/algos/naive_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _process_chunk(self, start, end, data, mask, _first, bootstrap_matrix, yvals
# Neither all of the bootstrap_draws are in this chunk nor the index starts at "start"
chunk_mask = (bootstrap_draws >= start) & (bootstrap_draws < end)
bootstrap_draws = bootstrap_draws[chunk_mask] - start
zarr = np.where(np.expand_dims(mask, -1), pdf_vals, 0.)[bootstrap_draws]
zarr = np.where(squeeze_mask, pdf_vals.T, 0.).T[bootstrap_draws]
bvals[i] += np.sum(zarr, axis=0)


Expand Down

0 comments on commit c369c61

Please sign in to comment.