sage.combinat.designs: Modularization fixes, update # needs#35943
sage.combinat.designs: Modularization fixes, update # needs#35943vbraun merged 17 commits intosagemath:developfrom
sage.combinat.designs: Modularization fixes, update # needs#35943Conversation
dcoudert
left a comment
There was a problem hiding this comment.
If I understand well, some # optional - ... statements should be # needs ....
Furthermore, for many blocks of tests/examples, we could use sage: # needs ....
|
|
||
| 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.
Shouldn't it be # needs sage.graphs sage.modules ?
There was a problem hiding this comment.
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.
|
|
||
| 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 |
src/sage/combinat/cluster_algebra_quiver/quiver_mutation_type.py
Outdated
Show resolved
Hide resolved
| 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.
Why not simply using sage: # needs sage.schemes here for the block ?
There was a problem hiding this comment.
The sage-fixdoctests script only does this automatically for blocks >= 4 lines
(see #35749 (comment))
| 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.
same here, we could use sage: # needs sage.modules.
|
|
||
| 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.
sage: # needs sage.numerical.mip
… all --only-tags src/sage/combinat/designs/*.{py,pyx}
…ly-tags src/sage/combinat/designs/*.{py,pyx}
|
Documentation preview for this PR (built with commit f132428; changes) is ready! 🎉 |
|
The bot reports the following error: It should not be related |
dcoudert
left a comment
There was a problem hiding this comment.
LGTM.
The error reported by the patchbot concerns giac and is not related to the changes in this PR.
|
Thanks a lot! |
# optionalare removed because small prime finite fields no longer need to be marked# optional/needs sage.rings.finite_ringssince Integer.{perfect_power,is_prime_power,is_irreducible}: Handle easy cases without PARI #35847# optionalare replaced by codeblock-scoped# needstags# optionalwith standard features are replaced by# needsThis is:
sage -fixdoctestsfrom Add style guide / reference for# optional - sage....doctest tags, extendsage -tandsage -fixdoctestsfor modularization tasks #35749📝 Checklist
⌛ Dependencies