-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Categories: adds support for SubcategoryMethods #12895
Comments
comment:1
How can one get the patch? I tried
but only get an empty patch. |
comment:2
Replying to @simon-king-jena:
Strange. Anyway, there it is. |
comment:3
Oh, and I should mention that basically all tests pass. |
comment:4
Attachment: trac_12895-subcategory-methods-nt.patch.gz Hi Simon, I have just been through the patch on the Sage-Combinat queue (same as here previously, but rebased a couple times). I improved a bit the documentation and fixed three remaining doctests failures and reposted. On my side, it's good to go. Please review! Note: the patch includes two small fixes in sage.combinat.sf which I am going to ask Anne to double check. Cheers, |
comment:5
For the record: all long tests passed with the following patches applied on top of 5.10 beta4 on Ubuntu:
|
comment:6
The changes to the k-Schur function code look ok. Thanks for catching those! Anne |
comment:7
Replying to @anneschilling:
Thanks Anne for the review. Simon: the ticket's review is all yours now :-) |
comment:8
I see that for
by
The point is that you do |
comment:9
The patch has a couple of old style line continuations. |
Crashlog |
comment:10
Attachment: Sage_crash_report.txt See attachment: Sage_crash_report.txt. Sage doesn't even start. |
comment:12
Never mind. I forgot one dependency (it said "fixed", but #12894 is only fixed in sage-5.10.beta1, which I don't have). Apply trac_12895-subcategory-methods-nt.patch |
comment:13
Replying to @simon-king-jena:
That's right. If I remember well (that was one year ago), the tricky part is to have the classcall setting work properly both for the original class and its dynamic subclass. And having |
Reviewer: Simon King |
This comment has been minimized.
This comment has been minimized.
comment:14
Attachment: trac_12895-review.patch.gz Tests pass for me. The patchbot timed out, so I just kicked it. The patch looks fine, except for the line continuation. Hence, I provided a review patch. Apply trac_12895-subcategory-methods-nt.patch trac_12895-review.patch |
comment:15
For the record: I just checked the review patch. Thanks Simon; one more patch done! Now the ball is on my side :-) |
comment:18
Hi Jeroen! Wow lots of things merged lately. Thanks! Any chance to get this one as well in beta1? Thanks! |
comment:19
Replying to @nthiery:
I don't know. In any case, it's all very academic since Sage 5.10 hasn't been released yet. |
Merged: sage-5.11.beta2 |
With this patch, a category can implement a nested class SubcategoryMethods that provides methods for all subcategories of this category (similar to ParentMethods that provides methods for all parents of all subcategories of this category).
This is implemented by updating the class of each category C, at the end of its initialization, to insert C.subcategory_class as superclass (like what is done for Parents and Elements).
This is a bit tricky, since the super_categories method needs to be called during the initialization.
The patch is under finalization on http://combinat.sagemath.org/patches/
Apply
Depends on #9138
Depends on #11900
Depends on #11943
Depends on #12875
Depends on #12876
Depends on #12877
Depends on #11935
Depends on #12894
CC: @sagetrac-sage-combinat @simon-king-jena
Component: categories
Author: Nicolas M. Thiéry
Reviewer: Simon King
Merged: sage-5.11.beta2
Issue created by migration from https://trac.sagemath.org/ticket/12895
The text was updated successfully, but these errors were encountered: