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
In the above example, self._points is np.array([[0., 0.], [1., 1.]]) and interval is (np.array([0.]), np.array([3650.])). If the converter handled scalars without promoting them to arrays, interval would be (0., 3650.), and the assignment would proceed without warning.
Currently
NetCDFTimeConverter.convert
promotes scalarCalendarDateTime
orcftime.datetime
objects to arrays of floats:Within matplotlib, this can lead to unusual assignment behavior, which will eventually be deprecated in NumPy (numpy/numpy#16943):
In the above example,
self._points
isnp.array([[0., 0.], [1., 1.]])
andinterval
is(np.array([0.]), np.array([3650.]))
. If the converter handled scalars without promoting them to arrays,interval
would be(0., 3650.)
, and the assignment would proceed without warning.xref: pydata/xarray#4265
The text was updated successfully, but these errors were encountered: