[BUG] division on Int64 storage kills kernel
andrzejnovak opened this issue · comments
Andrzej Novak commented
Example below:
import hist, numpy as np
hmap1 = (hist.new
.Reg(10, 0, 10, name='x', flow=False)
.Reg(10, 0, 10, name='y', flow=False)
.Int64()
).fill(np.random.normal(5, 3, 1000), np.random.normal(5, 3, 1000))
hmap2 = (hist.new
.Reg(10, 0, 10, name='x', flow=False)
.Reg(10, 0, 10, name='y', flow=False)
.Int64()
).fill(np.random.normal(3, 3, 1000), np.random.normal(3, 3, 1000))
hmap1/hmap2
Andrzej Novak commented
Henry Schreiner commented
The repr is normalized, so it's leaking NaN's in, which breaks it - we should filter/mask those. Will have to investigate the integer division one!
Andrzej Novak commented
Thanks!