Commit f066209
In sparselybin switch q array to floats before applying divide and floor
The same is done in binned histograms.
If not, numpy throws TypeError on trivial integer array cases such as:
>>> q = numpy.array([1,2,3,4])
>>> np.divide(q,1,q)
>>> np.floor(q,q)
which can easily happen if default binning is 1.1 parent 675a297 commit f066209
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
367 | 372 | | |
368 | 373 | | |
369 | 374 | | |
| |||
0 commit comments