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
We could make broadcast respect options -> arithmetic_join but that would be a breaking change and I am not sure how the deprecation should/ would be handled...
We could leave it as is.
Additional context
xr.broadcast should not be used often because this is should happen automatically in most cases
in Weighted quantile #6059 I use broadcast because I couldn't get it to work otherwise (maybe there is a better way?). However, the "outer elements" are immediately discarded again - so it's kind of pointless to do an outer join.
Is your feature request related to a problem?
xr.broadcast
always does an outer join:xarray/xarray/core/alignment.py
Line 702 in de965f3
xarray/xarray/core/alignment.py
Line 768 in de965f3
This is not how the (default) broadcasting (arithmetic join) works, e.g. the following first does an inner join and then broadcasts:
Describe the solution you'd like
Add a
join
argument toxr.broadcast
. I would propose to leave the default as isDescribe alternatives you've considered
broadcast
respectoptions -> arithmetic_join
but that would be a breaking change and I am not sure how the deprecation should/ would be handled...Additional context
xr.broadcast
should not be used often because this is should happen automatically in most casesbroadcast
because I couldn't get it to work otherwise (maybe there is a better way?). However, the "outer elements" are immediately discarded again - so it's kind of pointless to do an outer join.The text was updated successfully, but these errors were encountered: