You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When electrical_signal or optical_signal objects are first summand, the addition works well in all cases (because __add__ of these objects is executed).
Something strange happens when I try to sum a numpy array (as a first summand) with an object of type
electrical_signal
oroptical_signal
, like this:Raise an exception
It seems that numpy's implementation of the
__add__
operand somehow manages to interpret the object and translate it into an array of shape (3,2).This problem don't appear when the first summand is an object other than an
np.ndarray
. For example:It return:
When
electrical_signal
oroptical_signal
objects are first summand, the addition works well in all cases (because__add__
of these objects is executed).The text was updated successfully, but these errors were encountered: