-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Add support for facade parents #9065
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Author: Nicolas M. Thiéry |
comment:5
Hi Nicolas, I started to review this. I currently have only the following interface
instead of
|
comment:6
Sorry for replying to myself...
Actually, it seems that the code in |
comment:7
Replying to @hivert:
Good point :-) +1 on that change. |
Reviewer: Florent Hivert |
comment:8
Hi! I folded in Florent's reviewer patch for the above issue, added facade option in SearchForest, updated an example there as well as NN and Primes to be facades, and fixed some trivially failing tests reported by the patchbot. The patch should be good to go. Florent: can you confirm? |
comment:9
Replying to @nthiery:
Unfortunately not ! I spotted a few more wrong sphinx markup. Please have a look at my review patch on trac. Otherwise, it is ready to go. |
comment:10
I checked your patch, folded it in, and reuploaded. Thanks! |
comment:12
Attachment: trac_9065-facade_parents-nt.patch.gz Fixed another trivial failing test in a separate file. Hopefuly the last one! Florent just checked it, and is ok to leave the positive review. |
Merged: sage-4.7.1.alpha0 |
The goal of this tickets is to add support for facade parents; see:
This thread
The main issue currently is that facade parents (
Primes, NonNegativeIntegers, SymmetricFunctions,
...) are not aware that they are, which breaks some of the genericTestSuite
tests.This involves:
Parent.__init__
:Parent.__init__(self, facade = [ZZ])
P.is_parent_of(x)
inSets.ParentMethods
which checks that the parent of x is (equal to) P. Override this method for facade parents to check that the parent of x is one of the declared parents of P.P._test_one(), P._test_zero(), P._test_an_element()
(and maybe others) to useP.is_parent_of(x)
instead ofx in P
.CC: @sagetrac-sage-combinat
Component: categories
Keywords: facade, parent, TestSuite
Author: Nicolas M. Thiéry
Reviewer: Florent Hivert
Merged: sage-4.7.1.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/9065
The text was updated successfully, but these errors were encountered: