Skip to content

Commit 63e1a35

Browse files
committed
Simplify transpose in xr.dot
1 parent c98579f commit 63e1a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/computation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ def dot(*arrays, dims=None, **kwargs):
15291529
join=join,
15301530
dask="allowed",
15311531
)
1532-
return result.transpose(*[d for d in all_dims if d in result.dims])
1532+
return result.transpose(*all_dims, missing_dims="ignore")
15331533

15341534

15351535
def where(cond, x, y):

0 commit comments

Comments
 (0)