Skip to content

Commit 87b0b3d

Browse files
jp-darkihnorton
authored andcommitted
Check filters and isvar in Dim.__eq__
1 parent 93e8c1b commit 87b0b3d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tiledb/dimension.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ def __len__(self) -> int:
133133
def __eq__(self, other) -> bool:
134134
if not isinstance(other, Dim):
135135
return False
136-
if (
137-
self.name != other.name
138-
or self.domain != other.domain
139-
or self.tile != other.tile
140-
or self.dtype != other.dtype
141-
):
142-
return False
143-
return True
136+
return (
137+
self.name == other.name
138+
and self.domain == other.domain
139+
and self.tile == other.tile
140+
and self.dtype == other.dtype
141+
and self.isvar == other.isvar
142+
and self.filters == other.filters
143+
)
144144

145145
def __array__(self, dtype=None, **kw) -> np.array:
146146
if not self._integer_domain():

0 commit comments

Comments
 (0)