Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/JarronL/pynrc
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed May 4, 2019
2 parents dc51b9b + bda10ac commit dca50b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pynrc/maths/image_manip.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,8 @@ def hist_indices(values, bins=10, return_more=False):
center_vals = bins[:-1] + binsize / 2.
nbins = center_vals.size

# TODO: If input bins is an array that doesn't span the full set of input values,
# then we need to set a warning.
digitized = ((nbins-1.0) / (v1-v0) * (values_flat-v0)).astype(np.int)
csr = csr_matrix((values_flat, [digitized, np.arange(N)]), shape=(nbins, N))

Expand Down

0 comments on commit dca50b8

Please sign in to comment.