MCPcopy Index your code
hub / github.com/pydata/xarray / broadcast_equals

Method broadcast_equals

xarray/core/variable.py:1895–1906  ·  view source on GitHub ↗

True if two Variables have the values after being broadcast against each other; otherwise False. Variables can still be equal (like pandas objects) if they have NaN values in the same locations.

(self, other, equiv=duck_array_ops.array_equiv)

Source from the content-addressed store, hash-verified

1893 return False
1894
1895 def broadcast_equals(self, other, equiv=duck_array_ops.array_equiv):
1896 """True if two Variables have the values after being broadcast against
1897 each other; otherwise False.
1898
1899 Variables can still be equal (like pandas objects) if they have NaN
1900 values in the same locations.
1901 """
1902 try:
1903 self, other = broadcast_variables(self, other)
1904 except (ValueError, AttributeError):
1905 return False
1906 return self.equals(other, equiv=equiv)
1907
1908 def identical(self, other, equiv=duck_array_ops.array_equiv):
1909 """Like equals, but also checks attributes."""

Callers 4

no_conflictsMethod · 0.95
test_broadcast_equalsMethod · 0.95
test_broadcast_equalsMethod · 0.95
test_no_conflictsMethod · 0.95

Calls 2

equalsMethod · 0.95
broadcast_variablesFunction · 0.85

Tested by 3

test_broadcast_equalsMethod · 0.76
test_broadcast_equalsMethod · 0.76
test_no_conflictsMethod · 0.76