-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
sage.combinat.designs
: Modularization fixes, update # needs
#35943
sage.combinat.designs
: Modularization fixes, update # needs
#35943
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand well, some # optional - ...
statements should be # needs ...
.
Furthermore, for many blocks of tests/examples, we could use sage: # needs ...
.
@@ -25,8 +25,8 @@ def cluster_interact(self, fig_size=1, circular=True, kind='seed'): | |||
|
|||
TESTS:: | |||
|
|||
sage: S = ClusterSeed(['A',4]) # optional - sage.graphs | |||
sage: S.interact() # indirect doctest # optional - sage.graphs sage.symbolic | |||
sage: S = ClusterSeed(['A',4]) # optional - sage.graphs sage.modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be # needs sage.graphs sage.modules
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, the whole commit making changes outside of sage.combinat.designs
was not intended to be here. I'll open a separate PR for those changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's now #35951
@@ -41,11 +42,11 @@ def _principal_part(mat): | |||
EXAMPLES:: | |||
|
|||
sage: from sage.combinat.cluster_algebra_quiver.mutation_class import _principal_part | |||
sage: M = Matrix([[1,2],[3,4],[5,6]]); M | |||
sage: M = Matrix([[1,2],[3,4],[5,6]]); M # optional - sage.modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this file too
src/sage/combinat/cluster_algebra_quiver/quiver_mutation_type.py
Outdated
Show resolved
Hide resolved
@@ -929,11 +938,11 @@ def is_regular(self, r=None) -> bool | int: | |||
|
|||
EXAMPLES:: | |||
|
|||
sage: designs.balanced_incomplete_block_design(7,3).is_regular() | |||
sage: designs.balanced_incomplete_block_design(7,3).is_regular() # needs sage.schemes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not simply using sage: # needs sage.schemes
here for the block ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sage-fixdoctests script only does this automatically for blocks >= 4 lines
(see #35749 (comment))
@@ -1219,9 +1231,9 @@ def is_berge_cyclic(self): | |||
|
|||
EXAMPLES:: | |||
|
|||
sage: Hypergraph(5, [[1, 2, 3], [2, 3 ,4]]).is_berge_cyclic() | |||
sage: Hypergraph(5, [[1, 2, 3], [2, 3, 4]]).is_berge_cyclic() # needs sage.modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, we could use sage: # needs sage.modules
.
@@ -1431,10 +1445,10 @@ def packing(self, solver=None, verbose=0, *, integrality_tolerance=1e-3): | |||
|
|||
EXAMPLES:: | |||
|
|||
sage: P = IncidenceStructure([[1,2],[3,4],[2,3]]).packing() | |||
sage: sorted(sorted(b) for b in P) | |||
sage: P = IncidenceStructure([[1,2],[3,4],[2,3]]).packing() # needs sage.numerical.mip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sage: # needs sage.numerical.mip
… all --only-tags src/sage/combinat/designs/*.{py,pyx}
…ly-tags src/sage/combinat/designs/*.{py,pyx}
8feae19
to
e7bc5db
Compare
Documentation preview for this PR (built with commit f132428; changes) is ready! 🎉 |
The bot reports the following error:
It should not be related |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The error reported by the patchbot concerns giac
and is not related to the changes in this PR.
Thanks a lot! |
# optional
are removed because small prime finite fields no longer need to be marked# optional/needs sage.rings.finite_rings
since Integer.{perfect_power,is_prime_power,is_irreducible}: Handle easy cases without PARI #35847# optional
are replaced by codeblock-scoped# needs
tags# optional
with standard features are replaced by# needs
This is:
sage -fixdoctests
from Add style guide / reference for# optional - sage....
doctest tags, extendsage -t
andsage -fixdoctests
for modularization tasks #35749📝 Checklist
⌛ Dependencies