Hello,
I want to bring up Issue #2522 'numpy.diff fails on unsigned integers
(Trac #1929)' [1], as it was resonsible for an error in one of our
programs. Short explanation of the bug: np.diff performs a subtraction
on the input array. If this is of type uint and the data contains
falling data,
So, for non-structured arrays, the consens is an Exception. The question
is, which one.
AttributeError would be fully backwards compatible. Existing code checks
for the method and if it exists, the object has fields.
ValueError would make more sense, as the value - the array - is in wrong
format/st