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
I've found it useful to broadcast to size-1 unlabeled dimensions. This allows you to avoid useless extra work in functions that accept unlabeled arrays, and would be very convenient when paired with apply_ufunc.
The function being applied could benefit from receiving broadcasted arrays with size-1 dimensions instead of size-N. #2171 is relevant in that we'd need it for DataArrays broadcasted in this manner to be actually useful in Xarray ops.
I've found it useful to broadcast to size-1 unlabeled dimensions. This allows you to avoid useless extra work in functions that accept unlabeled arrays, and would be very convenient when paired with
apply_ufunc
.For example: https://github.com/xarray-contrib/flox/blob/ca576812e78b3978421eace6e9dde5a76729ebcc/flox/xarray.py#L45-L62
This should be paired with #2171
The text was updated successfully, but these errors were encountered: