Skip to content

Commit

Permalink
Actually make the fast code path return early for Aligner.align (#7222)
Browse files Browse the repository at this point in the history
* 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 <dcherian@users.noreply.github.com>
  • Loading branch information
hmaarrfk and dcherian authored Oct 28, 2022
1 parent 040816a commit 65bfa4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xarray/core/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ def align(self) -> None:
# fast path for the trivial case
(obj,) = self.objects
self.results = (obj.copy(deep=self.copy),)
return

self.find_matching_indexes()
self.find_matching_unindexed_dims()
Expand Down

0 comments on commit 65bfa4d

Please sign in to comment.