Skip to content

Commit

Permalink
Simplify transpose in xr.dot (#5849)
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan authored Oct 11, 2021
1 parent fecaa6a commit 07de257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@ def dot(*arrays, dims=None, **kwargs):
join=join,
dask="allowed",
)
return result.transpose(*[d for d in all_dims if d in result.dims])
return result.transpose(*all_dims, missing_dims="ignore")


def where(cond, x, y):
Expand Down

0 comments on commit 07de257

Please sign in to comment.