#13724: Correct inheritance for relabelled Cartan types
-------------------------------------------------+--------------------------
   Reporter:  JesusTorrado                       |             Owner:  joyner   
         
       Type:  defect                             |            Status:  new      
         
   Priority:  minor                              |         Milestone:  sage-5.6 
         
  Component:  group theory                       |          Keywords:  
CartanType relabel
Work issues:  Doctests fail for type_relabel.py  |   Report Upstream:  N/A      
         
  Reviewers:                                     |           Authors:  Jesus 
Torrado     
  Merged in:                                     |      Dependencies:           
         
   Stopgaps:                                     |  
-------------------------------------------------+--------------------------
 Currently, relabelled Cartan types lack some methods such as
 cartan_matrix():

 {{{
 sage: A3r = A3.relabel({1:2,2:3,3:1})
 sage: A3 = CartanType("A3")
 sage: A3.cartan_matrix()
 [ 2 -1  0]
 [-1  2 -1]
 [ 0 -1  2]
 sage: A3r = A3.relabel({1:2,2:3,3:1})
 sage: A3r.cartan_matrix()
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /space/ga98mup/sage-5.4-linux-64bit-
 ubuntu_12.04.1_lts-x86_64-Linux/<ipython console> in <module>()

 AttributeError: 'CartanType' object has no attribute 'cartan_matrix'
 }}}

 This should be solved by adequate calls to
 CartanType._abstract._add_abstract_superclass().

 Related discussion in sage-combinat-devel:
 https://groups.google.com/forum/?fromgroups=#!topic/sage-combinat-devel
 /On-VfvxjeDk

 Current issues:

 - Doctests fail for type_relabel.py (related to dynamic classes?)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13724>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to