Skip to content

Commit

Permalink
fix: pass through bins_upto_boxlen from get_power
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Aug 5, 2024
1 parent aef97b9 commit 85d15d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/powerbox/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,13 @@ def angular_average_nd( # noqa: C901
n2 = np.prod(field.shape[n:])
if interpolation_method is None:
indx, bins, sumweights = _get_binweights(
coord_mags, weights, bins, average, bin_ave=bin_ave, log_bins=log_bins
coord_mags,
weights,
bins,
average,
bin_ave=bin_ave,
log_bins=log_bins,
bins_upto_boxlen=bins_upto_boxlen,
)
res = np.zeros((len(sumweights), n2), dtype=field.dtype)
if interpolation_method is not None:
Expand Down Expand Up @@ -1248,6 +1254,7 @@ def get_power(
interpolation_method=interpolation_method,
interp_points_generator=interp_points_generator,
return_sumweights=return_sumweights,
bins_upto_boxlen=bins_upto_boxlen,
)
res = list(res)
# Remove shot-noise
Expand Down

0 comments on commit 85d15d0

Please sign in to comment.