Skip to content

Commit

Permalink
radialI: more general bin guess
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Oct 27, 2023
1 parent 10b7fb2 commit 6934dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mpol/onedim.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def radialI(image, coords, geom, bins=None):
if bins is None:
# choose sensible bin size and range
step = np.hypot(coords.cell_size, coords.cell_size)
bins = np.arange(min(abs(np.ravel(xc))), max(abs(np.ravel(xc))), step)
bins = np.arange(0.0, np.max((abs(xc.ravel()), abs(yc.ravel()))), step)

bin_counts, bin_edges = np.histogram(a=rr, bins=bins, weights=None)

Expand Down

0 comments on commit 6934dfa

Please sign in to comment.