Closed HajimeKawahara closed 1 month ago
I would define eq methods (and neq ) in ExoJAX classes to enable to use == (and !=) operators.
==
!=
The use of the comparison of __dict__ (the following code) did not work:
__dict__
def __eq__(self, other): if isinstance(other, MyClass): return self.__dict__ == other.__dict__ return False
So, we decided to compare the attributes directly.
done by #512
I would define eq methods (and neq ) in ExoJAX classes to enable to use
==
(and!=
) operators.The use of the comparison of
__dict__
(the following code) did not work:So, we decided to compare the attributes directly.