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
PentagonPoset and DiamondPoset, default argument for facade #17051
Comments
comment:1
Is this related to #14019? You don't get same error message if you say |
comment:2
Okay, I'll add a message in #14019, they have been wasting my time for long enough. |
comment:3
On discussion at #14019 tscrim wasn't sure if this relates to same relabeling thing or not. I move this to wontfix-milestone, but will not marked as positive review yet. |
comment:4
More about this. Problem is that
|
comment:6
More fun:
outputs
|
comment:7
I HATE THIS CODE. You cannot for one second even trust that it does what you think it should do. Okay, that's because there is in Poset(....) a keyword named "facade" (not how clearly it indicates what it does) that changes the type of the things inside of the poset.
I had to fight a looooong time ago to obtain that facade becomes True by defaut in Posets. And now it is, but for some stupid reason the constructor of PentagonalPoset enforces facade=False. So the code should only be changed to follow the same default as the Poset constructor. Or even to remove this keyword in PentagonalPoset, or replace it with By the way: the real explanation is that the + has been changed to mean "join" or "meet". It is not had to find out: take your 'x' as you defined it and type 'x.add'. Nathann |
Commit: |
comment:9
I also removed part of documentation; it seems to better suited for New commits:
|
Author: Jori Mäntysalo |
comment:10
The same thing happens with Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Reviewer: Nathann Cohen |
comment:14
Helloooooooooooooo ! Seems good, but why did you remove that doc ? Also, could you mention this Thanks, Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
Replying to @nathanncohen:
I think that it was irrelevant in this context. Also note about
Done. Should have noticed this myself. |
comment:17
Hello !
Why do you think that it is irrelevant here ? It is a docstring about an object, so why don't we show its nice properties ? This sage software is all about checking on computers what we can prove on paper anyway Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:19
OK, I added an example. Not the same, thought. |
comment:21
Hello ! I added a small commit on top of yours. What it does :
I will also create a ticket to ask Nicolas to write some documentation about Set this ticket to Nathann |
Changed branch from u/jmantysalo/strange_bug_in_poset_show__ to public/17051 |
New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:24
I had forgotten a detail: it is better to make the default value of Nathann |
comment:25
(just created #17073 about the documentation of Facade) |
comment:26
Seems reasonable --> positive_review. |
Changed branch from public/17051 to |
This triggers error:
Error message is
ValueError: element (=2) not in poset
. Reason was default value for argumentfacade
. This is corrected in this ticket.Same bug was in
Posets.DiamondPoset()
. AlsoPosets.DiamondPoset(2)
returns empty poset,DiamondPoset(1)
gives error message. This is now changed in forn <= 2
they raise exception.CC: @nathanncohen
Component: combinatorics
Author: Jori Mäntysalo
Branch/Commit:
044a0a0
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/17051
The text was updated successfully, but these errors were encountered: