-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
Meta-ticket: Deprecate CombinatorialClass in favor of the EnumeratedSet's categories #12913
Comments
This comment has been minimized.
This comment has been minimized.
comment:3
More work:
|
comment:4
Permutations in #14772. |
comment:5
Integer vectors in #12453. |
comment:10
Status
|
comment:11
That's actually slightly worse than I thought, but it is good progress. I suspect most of them should be easy changes. From a quick look:
is easy to fix as per the comment there (which really moves the issue to the However
is harder as the |
comment:12
see #23422 |
comment:14
#26384 for non-decreasing parking functions |
comment:15
|
comment:16
remains now
|
comment:17
|
comment:18
@fchapoton: concerning the species problem, would you be interested in participating in an online species workshop in February - both as mathematician and as sagemath aficionado? |
comment:19
Oh, there seems to remains more with sub-classes (including
|
comment:20
deprecating the unused variants in #31545 |
comment:22
I have opened #32121 for |
comment:23
#33384: Deprecate global imports of |
<!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> - Fixes sagemath#36133 - Fixes sagemath#33384 - Fixes sagemath#19474 - Fixes sagemath#12913 ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [ ] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#37722 Reported by: Matthias Köppe Reviewer(s): Martin Rubey, Matthias Köppe, Travis Scrimshaw
All classes that currently inherit from
CombinatorialClass
should instead inherit from Parent and register themselves in one of the categories (*EnumeratedSets
,*FiniteEnumeratedSets
, or*InfiniteEnumeratedSets
). For examples, see e.g.FiniteEnumeratedSets().example()
.CombinatorialClass
inherits fromParent
(mostly done Have CombinatorialClass inherits from Parent #8910)CombinatorialClass
C:Parent
C.__init__
sets up the proper category (Finite|Infinite)...TestSuite(C).run()
to the doctests and make all the tests passC.Element
and useC.element_class
(as defined by the categories) when constructing elementsUniqueRepresentation
andParent
CombinatorialClass
ClasscallMetaClass
; seePerfectMatching
andTrees
for an advanced example.See also: http://wiki.sagemath.org/CombinatorialClass
CC: @sagetrac-sage-combinat
Component: combinatorics
Issue created by migration from https://trac.sagemath.org/ticket/12913
The text was updated successfully, but these errors were encountered: