Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define __eq__ method on elements #48

Open
mfurseman opened this issue Nov 16, 2017 · 2 comments
Open

Define __eq__ method on elements #48

mfurseman opened this issue Nov 16, 2017 · 2 comments

Comments

@mfurseman
Copy link

I have elements that come from different instances of the lattice, but otherwise represent the same element. When I test for equality of these elements they have different memory address and so the test fails. As they do actually represent the same lattice element I would expect the tests to pass.

@willrogers
Copy link
Collaborator

Good idea.

Out of interest, what do you mean 'different instances of the lattice'? How do you get to this situation?

@mfurseman
Copy link
Author

I have a set of utility functions that are creating the lattice as it is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants