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
Bug in AffineGeometryDesign #15285
Comments
Commit: |
Branch: u/ncohen/15285 |
New commits:
|
comment:3
Looks good, but I do not understand the doctests about
Why do the parameters differ from the result of Is it because it is a 3-(something) design and not a 2-(something) design ? If so, maybe you should rather use rather BD.parameters(t=3) ? |
comment:4
Yoooooooooo !!
Ahahaha. Design codes are tricky The first number is the size of the sets that the design covers. That does not change. The second number is the number of points, and that does not change. The third number is the size of the sets contained in the design. This does not change. The fourth number is the number of times each set to be covered is actually covered. And this one changes, because as each set was present too many times in the design, the set were covered too many times too. But the parameter 't' has no reason to change. Nathann |
comment:5
Let me re-ask my question, trying to be more clear. After the commits (and before also), the doctests show that
but not for Why is it so ? Are they supposed to always give the same result ? |
comment:6
Yooooo !
Well, I have absolutely no idea. I don't use this The docstring of For the record
And there, they do not return the same
Oh, I finally understand what you said ! And why you talked of this But they should agree on this Hmmmm... Well it seems wrong but I really do not understand what the code does. And this Actually, I do not understand why this function does not call That's all I can say right now. I really don't understand the part of the code included in this Nathann |
comment:7
I am about to send you and David an email. Looks like he is the one who wrote this code. Nathann |
comment:8
The docstring for designs.AffineGeometryDesign is not clear. It mentions an input "v" that's not an input. |
comment:9
Ahahahahah. Yes, indeed. I fix a bug in a function that is not perfectly documented, so I should fix it too. Honestly, no problem. But no double standard either : keep the same level of expectation when you review combinat/ patches. If nobody is allowed to touch a function when it doc is not perfect this thing will be cleaned in a couple of months Nathann |
comment:10
Personally, I will. Perfection is a lofty goal, but surely a correct list of inputs, output, and a few doctests is a reasonable requirement? I'm just following the guidelines: http://www.sagemath.org/doc/developer/trac.html#reviewing-patches |
comment:11
You have no idea how totally I agree with you. You are right. The point is that I have very frequent exchanges of hate mail with Nicolas (among others) about this very subject. Because there is on #10963 a comment saying "Okay, the patch is missing on the documentation side but let's consider it good as it is". Because very basic parts of the Category stuff still has no documentation, you just have to "talk to the right guys", who know what is missing (i.e. the questions they have to answer). Because I am accused of slowing down people's work in #13624 (comments 38 to 41) when I say that packages break without any reason nor explanation, and request more doc. Hell, I am told I can't complain if a package breaks for no reason because it is "experimental". Don't misunderstand me. I totally agree with you. I just suffer of the double standard. And of feeling that I am the only one to complain constantly, while expecting myself to do this kind of work on my patches Anyway, I added a commit. I also allowed to input an integer instead of a FiniteField, because I hate to build a field to see the code discard the field and use its cardinality only. And by the way, here is an interesting thing :
Let's always leave a better place than the one we entered. Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
I see your suffering. I don't interact with the combinat code usually, so I haven't encountered it. The discussion about the design parameters is unrelated to this ticket, so I'm happy to see this one go in! |
Reviewer: Stefan van Zwam |
comment:15
Thank you for the review ! By the way I wrote to Frederic and David Joyner about that. David just answered and told me that Peter Cameron wrote this code. We'll end up fixing it I hope Nathann |
comment:16
Ah. Peter Cameron and I attended the same workshop this week, but I don't see him around today. Perhaps he left early, otherwise I would have asked him about it ;-) |
comment:17
Now fixed in #15664. Nathann |
A
List
is used instead of aSet
, and as a result blocks are returned several times. Example :Before
After
Depends on #15107
Component: combinatorics
Author: Nathann Cohen
Branch/Commit: u/ncohen/15285 @
6ff6a06
Reviewer: Stefan van Zwam
Issue created by migration from https://trac.sagemath.org/ticket/15285
The text was updated successfully, but these errors were encountered: