Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Not able to relabel a Cartan type in the notebook

In the shell:

sage: A3 = CartanType("A3")
sage: A3.relabel({1:2,2:3,3:1})
['A', 3] relabelled by {1: 2, 2: 3, 3: 1}

But in the notebook:


A3 = CartanType("A3")


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "", line 10, in <module>
    exec compile(u'open("","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("QTMgPSBDYXJ0YW5UeXBlKCJBMyIpCkEzLnJlbGFiZWwoezE6MiwyOjMsMzoxfSk="),globals())+"\\n"); execfile(os.path.abspath(""))
  File "", line 1, in <module>

  File "/tmp/tmpWUCLyz/", line 4, in <module>
exec compile(u'A3.relabel({_sage_const_1 :_sage_const_2 ,_sage_const_2 :_sage_const_3 ,_sage_const_3 :_sage_const_1 })
  File "", line 1, in <module>

  File "/usr/lib/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/", line 795, in relabel
import type_relabel
  File "/usr/lib/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/", line 278, in <module>
class CartanType_affine(sage.combinat.root_system.cartan_type.CartanType_affine):
AttributeError: 'module' object has no attribute 'cartan_type'

Strange, isn't it?