Skip to content

Commit aeb0fa8

Browse files
author
Eric Giguere
committed
Better __eq__
1 parent b80ac66 commit aeb0fa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qutip/core/cy/coefficient.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ cdef class Coefficient:
156156
return ConjCoefficient(self)
157157

158158
def __eq__(self, other):
159-
return self is other
159+
return self is other or self.__reduce__() == other.__reduce__()
160160

161161

162162
@cython.auto_pickle(True)

0 commit comments

Comments
 (0)