Skip to content

Commit

Permalink
remove unnecessary (?) check
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneschalk committed Feb 25, 2024
1 parent 99835cc commit ea30aad
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions xarray/core/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -2866,8 +2866,6 @@ def broadcast_variables(*variables: Variable) -> tuple[Variable, ...]:

def _broadcast_compat_data(self, other):
if not OPTIONS["arithmetic_broadcast"]:
if not isinstance(self, Variable):
raise NotImplementedError
if (isinstance(other, Variable) and self.dims != other.dims) or (
isinstance(other, np.ndarray) and self.ndim != other.ndim
):
Expand Down

0 comments on commit ea30aad

Please sign in to comment.