-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
AttributeError raised by method __eq__ of poset element #12351
Comments
comment:1
The problem was in the comparison of poset elements. Comparing a poset element with any object that has no parent (for example, comparison with a Python int) resulted in an error. I thought the straight forward way to fix it is: Use With the patch, plotting the Hasse diagram works, and the bug fix is doctested. Needs review, then! |
Author: Simon King |
comment:2
Great! I tested it (on sage-4.7.2) and it solves the problem. All tests pass on But now, I get another problem. When the package
which is also obtained by doing
|
Reviewer: Sébastien Labbé |
comment:3
This is now #12364. |
comment:4
Same lines are edited by #11559. One will have to adapt to the other one. |
This comment has been minimized.
This comment has been minimized.
comment:5
Changed the ticket title and its description since the original problem (hasse diagram ploting) might be (is?) solved indirectly by #10998. |
comment:7
Replying to @nthiery:
Since #10998 does not touch the |
comment:9
I just tested that the error vanishes with #10998. From that point of view, one could suggest that the ticket be resolved as duplicate. On the other hand, having I leave the decision to you. |
comment:10
Replying to @simon-king-jena:
I don't mind. In case we go for it, we might as well use "sage.structure.sage_object.have_same_parent". |
Apply only this patch. |
Changed reviewer from Sébastien Labbé to none |
comment:11
Attachment: trac_12351-doctest.patch.gz The new code from #10998 already uses |
Changed author from Simon King to David Loeffler |
Reviewer: Nicolas M. Thiéry, Simon King |
Merged: sage-5.0.beta9 |
Using sage-4.7.2
This error is raised when ploting a poset :
CC: @sagetrac-sage-combinat
Component: combinatorics
Keywords: poset
Author: David Loeffler
Reviewer: Nicolas M. Thiéry, Simon King
Merged: sage-5.0.beta9
Issue created by migration from https://trac.sagemath.org/ticket/12351
The text was updated successfully, but these errors were encountered: