ndarray icon indicating copy to clipboard operation
ndarray copied to clipboard

More informative messages when index out of bound

Open fzyzcjy opened this issue 3 years ago • 0 comments
trafficstars

Hi thanks for the lib! When I made a bug and access index out of bound (e.g. arr.slice(s![a..b, c..d])), I see:

Slice begin 16744 is past end of axis of length 184

I would appreciate it if it could be a bit more informative, such as:

Slice begin 16744 is past end of axis of length 184 (array size: 1234x184; slice arg: 123x16744)

Then, programmers can debug the problem quicker - at least we know which axis goes wrong.

fzyzcjy avatar Nov 27 '21 09:11 fzyzcjy