Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pytato/equality.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ def map_size_param(self, expr1: SizeParam, expr2: Any) -> bool:
)

def map_data_wrapper(self, expr1: DataWrapper, expr2: Any) -> bool:
return expr1 is expr2
import numpy as np
return (expr1.__class__ is expr2.__class__
and np.array_equal(expr1.data.get(), expr2.data.get())
)

def map_index_lambda(self, expr1: IndexLambda, expr2: Any) -> bool:
return (expr1.__class__ is expr2.__class__
Expand Down