py_pcha icon indicating copy to clipboard operation
py_pcha copied to clipboard

np.floor instead of np.ceil

Open psl-schaefer opened this issue 10 months ago • 0 comments

https://github.com/ulfaslak/py_pcha/blob/f398d28c6a28c4a8121cb75443b221fc58fc10e4/py_pcha/PCHA.py#L153

Why are you using np.ceil here? Because it is possible to select and $i$ that is not in the data leading to an index error.

psl-schaefer avatar Apr 24 '24 14:04 psl-schaefer