@@ -634,7 +634,7 @@ def __call__(self, *args):
634
634
635
635
if isinstance (t , str ):
636
636
if "x" in t :
637
- import type_reducible
637
+ from . import type_reducible
638
638
return type_reducible .CartanType ([CartanType (u ) for u in t .split ("x" )])
639
639
elif t [- 1 ] == "*" :
640
640
return CartanType (t [:- 1 ]).dual ()
@@ -650,35 +650,35 @@ def __call__(self, *args):
650
650
if len (t ) == 2 :
651
651
if letter == "A" :
652
652
if n >= 0 :
653
- import type_A
653
+ from . import type_A
654
654
return type_A .CartanType (n )
655
655
if letter == "B" :
656
656
if n >= 1 :
657
- import type_B
657
+ from . import type_B
658
658
return type_B .CartanType (n )
659
659
if letter == "C" :
660
660
if n >= 1 :
661
- import type_C
661
+ from . import type_C
662
662
return type_C .CartanType (n )
663
663
if letter == "D" :
664
- import type_D
664
+ from . import type_D
665
665
if n >= 2 :
666
666
return type_D .CartanType (n )
667
667
if letter == "E" :
668
668
if n >= 6 and n <= 8 :
669
- import type_E
669
+ from . import type_E
670
670
return type_E .CartanType (n )
671
671
if letter == "F" :
672
672
if n == 4 :
673
- import type_F
673
+ from . import type_F
674
674
return type_F .CartanType ()
675
675
if letter == "G" :
676
676
if n == 2 :
677
- import type_G
677
+ from . import type_G
678
678
return type_G .CartanType ()
679
679
if letter == "H" :
680
680
if n in [3 , 4 ]:
681
- import type_H
681
+ from . import type_H
682
682
return type_H .CartanType (n )
683
683
if letter == "I" :
684
684
if n == 1 :
@@ -690,42 +690,42 @@ def __call__(self, *args):
690
690
if n == 6 :
691
691
return CartanType (["G" , 2 ])
692
692
if n >= 1 :
693
- import type_I
693
+ from . import type_I
694
694
return type_I .CartanType (n )
695
695
if len (t ) == 3 :
696
696
if t [2 ] == 1 : # Untwisted affine
697
697
if letter == "A" :
698
698
if n >= 1 :
699
- import type_A_affine
699
+ from . import type_A_affine
700
700
return type_A_affine .CartanType (n )
701
701
if letter == "B" :
702
702
if n >= 1 :
703
- import type_B_affine
703
+ from . import type_B_affine
704
704
return type_B_affine .CartanType (n )
705
705
if letter == "C" :
706
706
if n >= 1 :
707
- import type_C_affine
707
+ from . import type_C_affine
708
708
return type_C_affine .CartanType (n )
709
709
if letter == "D" :
710
- import type_D_affine
710
+ from . import type_D_affine
711
711
if n >= 3 :
712
712
return type_D_affine .CartanType (n )
713
713
if letter == "E" :
714
714
if n >= 6 and n <= 8 :
715
- import type_E_affine
715
+ from . import type_E_affine
716
716
return type_E_affine .CartanType (n )
717
717
if letter == "F" :
718
718
if n == 4 :
719
- import type_F_affine
719
+ from . import type_F_affine
720
720
return type_F_affine .CartanType ()
721
721
if letter == "G" :
722
722
if n == 2 :
723
- import type_G_affine
723
+ from . import type_G_affine
724
724
return type_G_affine .CartanType ()
725
725
if t [2 ] in [2 ,3 ]:
726
726
if letter == "BC" and t [2 ] == 2 :
727
727
if n >= 1 :
728
- import type_BC_affine
728
+ from . import type_BC_affine
729
729
return type_BC_affine .CartanType (n )
730
730
if letter == "A" and t [2 ] == 2 :
731
731
if n % 2 == 0 : # Kac' A_2n^(2)
@@ -739,7 +739,7 @@ def __call__(self, *args):
739
739
if letter == "E" and t [2 ] == 2 and n == 6 :
740
740
return CartanType (["F" , 4 , 1 ]).dual ()
741
741
raise ValueError ("%s is not a valid Cartan type" % t )
742
- import type_reducible
742
+ from . import type_reducible
743
743
return type_reducible .CartanType ([ CartanType (subtype ) for subtype in t ])
744
744
745
745
global_options = CartanTypeOptions
@@ -1128,7 +1128,7 @@ def dual(self):
1128
1128
sage: CartanType(['F',4]).dual()
1129
1129
['F', 4] relabelled by {1: 4, 2: 3, 3: 2, 4: 1}
1130
1130
"""
1131
- import type_dual
1131
+ from . import type_dual
1132
1132
return type_dual .CartanType (self )
1133
1133
1134
1134
def relabel (self , relabelling ):
@@ -1153,7 +1153,7 @@ def relabel(self, relabelling):
1153
1153
4 3 2 1
1154
1154
F4 relabelled by {1: 4, 2: 3, 3: 2, 4: 1}
1155
1155
"""
1156
- import type_relabel
1156
+ from . import type_relabel
1157
1157
return type_relabel .CartanType (self , relabelling )
1158
1158
1159
1159
def subtype (self , index_set ):
@@ -1192,7 +1192,7 @@ def marked_nodes(self, marked_nodes):
1192
1192
"""
1193
1193
if not marked_nodes :
1194
1194
return self
1195
- import type_marked
1195
+ from . import type_marked
1196
1196
return type_marked .CartanType (self , marked_nodes )
1197
1197
1198
1198
def is_reducible (self ):
@@ -2403,7 +2403,7 @@ def __reduce__(self):
2403
2403
True
2404
2404
2405
2405
"""
2406
- from cartan_type import CartanType
2406
+ from . cartan_type import CartanType
2407
2407
return (CartanType , (self .letter , self .n ))
2408
2408
2409
2409
def __cmp__ (self , other ):
0 commit comments