Closed robertmaxton42 closed 6 years ago
Are you sure that the result is exactly the same as devtest
, and not just consists of byte-sized numbers? Because that's actually the expected behaviour.
Note that np.cumsum
automatically promotes the result to uint64
to accommodate the sums. Scan
keeps the results in the same dtype, that is, ubyte
. If you do the same with numpy
:
axsum = np.cumsum(test, 0).astype(np.ubyte)
The contents of out
should be exactly the same as axsum
, or, at least, they are on my machine. Please tell me if it is not the case for you.
.... How did I miss that? I even left a note to myself to remember not to allow windows above a certain size precisely to avoid this in release, but didn't think of it when I was writing test code...
Thanks for catching that. Sorry to bother you.
No worries, it is always possible I made some stupid mistake and missed it with tests :)
I can't seem get Scan to work out of the box:
just gets me the context of devtest, unchanged, in
out
.