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 IncidenceStructure.is_block_design #15664
Comments
Branch: u/ncohen/15664 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
Commit: |
comment:7
Hello, Nice job ! Do you still need to use |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
comment:9
Fixed ! Nathann |
comment:10
Looks good to me. One last detail : there lacks a space after "2" in "2is used when none is provided" Then you can set a positive review. |
Reviewer: Frédéric Chapoton |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
comment:13
Done ! Thanks for the review Nathann |
This bug has been noticed by Frederic in #15285 :
Turns out that the code of
is_block_design
was rather unclear, and rather... Costly. Here is a simpler, faster and more correct version in which the bug in solved.Before:
After:
Secondly,
IncidenceStructure.parameter
has a very tricky behaviour :This is because
parameters()
taket
as a parameter, and sets it to2
by default. That's.... surprising:-P
This patch adds a deprecation warning when this parameter is not set, and we will make it mandatory... in a while.
Here it is !
Nathann
(this ticket took roughly 3hours of solid work)
Depends on #15285
CC: @fchapoton @sagetrac-Stefan @wdjoyner
Component: combinatorics
Author: Nathann Cohen
Branch/Commit: u/ncohen/15664 @
2aa7e18
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/15664
The text was updated successfully, but these errors were encountered: