Skip to content

Fix __hash__ and __eq__ for basix.ufl elements#718

Merged
mscroggs merged 21 commits intoFEniCS:mainfrom
conpierce8:hash-eq
Nov 1, 2023
Merged

Fix __hash__ and __eq__ for basix.ufl elements#718
mscroggs merged 21 commits intoFEniCS:mainfrom
conpierce8:hash-eq

Conversation

@conpierce8
Copy link
Contributor

Addresses #717 by synchronizing the repr (which is used to compute the hash) and __eq__ functions for all element types in basix.ufl.

@mscroggs mscroggs linked an issue Oct 27, 2023 that may be closed by this pull request
@conpierce8
Copy link
Contributor Author

Added tests for __eq__ and __hash__. Are these overkill? Suggestions welcome. (Seems like I've added a lot of code to test some minor functionality.)

@mscroggs mscroggs marked this pull request as ready for review November 1, 2023 08:39
@mscroggs mscroggs merged commit 4671404 into FEniCS:main Nov 1, 2023
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

Successfully merging this pull request may close these issues.

Conflicting __eq__/__hash__ in basix.ufl._BlockedElement

3 participants