Skip to content

Commit 2155f6e

Browse files
committed
Switchover scipy.histogram() to numpy.histogram() to deal with scipy 1.12 changes
1 parent 6eee03e commit 2155f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caiman/utils/stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def kde(data, N=None, MIN=None, MAX=None):
233233

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

0 commit comments

Comments
 (0)