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
This happens because x has an attribute data, but cp.asarray(x.data) doesn't work (like it does for NumPy). asarray (and other functions) probably shouldn't be using the data attribute of an object just because it exists; we only really mean to do that if the array has a mask.
The text was updated successfully, but these errors were encountered:
This should work:
This happens because
x
has an attributedata
, butcp.asarray(x.data)
doesn't work (like it does for NumPy).asarray
(and other functions) probably shouldn't be using thedata
attribute of an object just because it exists; we only really mean to do that if the array has a mask.The text was updated successfully, but these errors were encountered: