Skip to content

Commit 65bfa4d

Browse files
hmaarrfkdcherian
andauthored
Actually make the fast code path return early for Aligner.align (#7222)
* Actually make the fast code path return early * Totally avoid any kind of copy * Revert "Totally avoid any kind of copy" This reverts commit b528234. Co-authored-by: Deepak Cherian <[email protected]>
1 parent 040816a commit 65bfa4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xarray/core/alignment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ def align(self) -> None:
551551
# fast path for the trivial case
552552
(obj,) = self.objects
553553
self.results = (obj.copy(deep=self.copy),)
554+
return
554555

555556
self.find_matching_indexes()
556557
self.find_matching_unindexed_dims()

0 commit comments

Comments
 (0)