Skip to content

Commit

Permalink
Switchover scipy.histogram() to numpy.histogram() to deal with scipy …
Browse files Browse the repository at this point in the history
…1.12 changes
  • Loading branch information
pgunn committed Feb 19, 2024
1 parent 6eee03e commit 2155f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caiman/utils/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def kde(data, N=None, MIN=None, MAX=None):

# Histogram the data to get a crude first approximation of the density
M = len(data)
DataHist, bins = scipy.histogram(data, bins=N, range=(MIN, MAX))
DataHist, bins = np.histogram(data, bins=N, range=(MIN, MAX))
DataHist = DataHist / M
DCTData = fftpack.dct(DataHist, norm=None)

Expand Down

0 comments on commit 2155f6e

Please sign in to comment.