Skip to content

Commit

Permalink
Simplify transpose in xr.dot
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Oct 10, 2021
1 parent c98579f commit 63e1a35
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 63e1a35

Please sign in to comment.