Skip to content

Commit b28eb82

Browse files
committed
minor fix for diff
1 parent 9005241 commit b28eb82

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

psy_simple/plotters.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ def update(self, value):
238238

239239
def diff(self, value):
240240
try:
241-
return ~(
241+
return not (
242242
(np.shape(value) == np.shape(self.value))
243-
& np.all(value == self.value)
243+
and np.all(value == self.value)
244244
)
245245
except TypeError:
246246
return True
@@ -3817,6 +3817,8 @@ class DataGrid(Formatoption):
38173817

38183818
name = "Grid of the data"
38193819

3820+
data_dependent = True
3821+
38203822
@property
38213823
def xcoord(self):
38223824
"""The x coordinate :class:`xarray.Variable`"""

0 commit comments

Comments
 (0)