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
The ArrayLike TypeVar is not set up correctly and may be hiding underlying type inconsistencies. Our goal here was to create a single type that could handle xr.DataArray and np.ndarray consistently.
It currently works decently well, but we have to use inline ignores in certain circumstances (see # type: ignore[assignment]).
I think the preferred solution is to use np.ndarray everywhere specifying the types we expect in the array.
Description
The ArrayLike TypeVar is not set up correctly and may be hiding underlying type inconsistencies. Our goal here was to create a single type that could handle
xr.DataArray
andnp.ndarray
consistently.It currently works decently well, but we have to use inline ignores in certain circumstances (see
# type: ignore[assignment]
).I think the preferred solution is to use
np.ndarray
everywhere specifying the types we expect in the array.Details
utils.types
Additional Notes
This may require more handling in the basic grid models, like
issr
,sac
,pcr
.The text was updated successfully, but these errors were encountered: