-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
PolyhedronFace: Fix pickling test #32025
Comments
comment:1
Can you please provide an example on where it fails? If you are going to fix it yourself then I guess you'll provide an example along with the fix. |
comment:2
The I'm working on something else right now - so help with this ticket would be welcome! |
comment:3
Well, the only problem is that we currently require |
comment:4
OK, perhaps it's too tricky to implement Although I suppose if the polyhedra are not the same, one could just delegate the comparison to But I guess I can just skip the pickling test in #32013 to work around it. |
comment:6
I didn't mean to imply that this does not need to be fixed. I just wanted to comment that the fixing needs to be done in richcmp and not pickling. Pickling works fine. I guess instead of requiring the two polyhedra two be identical, we can just require the if self._polyhedron is not other._polyhedron:
- raise NotImplementedError
+ if (self._polyhedron.Vrepresentation() != other._polyhedron.Vrepresentation()
+ or self._polyhedron.Hrepresentation() != other._polyhedron.Hrepresentation()):
+ raise NotImplementedError Actually we can be less strict and allow the Hrepresentation to differ. We could even allow the Vrepresentation to be a permutation of the other Vrepresentation, but this is definitely not needed to fix the pickling test for faces. |
Author: Jonathan Kliem |
Branch: public/32025 |
This comment has been minimized.
This comment has been minimized.
Commit: |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
comment:9
Merged to resolve merge conflict |
Dependencies: #31959 |
Reviewer: Matthias Koeppe |
comment:10
Thanks for working on this! LGTM |
Changed branch from public/32025 to |
needed for #32013
We fix rich comparison of faces and pickled faces, so that as expected we have:
Along the way we remove
_test_pickling
skips that are no longer necessary (because ppl polyhedra can be pickled).Depends on #31959
CC: @kliem @tscrim
Component: geometry
Author: Jonathan Kliem
Branch/Commit:
2b9316b
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/32025
The text was updated successfully, but these errors were encountered: