Closed Jacob-Stevens-Haas closed 8 months ago
Deep underneath, scatter
is making a np.MaskedArray
. This is losing the .axes
property, as well as (sometimes) the _ax_map
. See numpy.ma.core:MaskedArray.__array_finalize__
. Also numpy.ma.core:asanyarray
.
Currently,
AxesArray
tries to implement the most commonly used numpy functions that preserve certain axis information. For others, the numpy function executes and then callsAxesArray.__array_finalize__(self, obj)
, which tries to guess how to assign axes. This causes an error inravel()
, called by some plotting functions.Reproducing code example:
Error message:
PySINDy/Python version information:
current master, a0e36ddb08080ebbf2aeff47b7bae3e51ff8bc2a