File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ def wp(self):
427
427
verbose ('Found %s initial candidates for wp' % len (all_initial ))
428
428
i = 0
429
429
try :
430
- pgen = self .ideal_p .gen ( 0 )
430
+ pgen = self .ideal_p .gens_reduced ()[ 0 ]
431
431
except AttributeError :
432
432
pgen = self .ideal_p
433
433
for v1 ,v2 in cantor_diagonal (self .Gn .enumerate_elements (),self .Gn .enumerate_elements ()):
@@ -505,7 +505,7 @@ def _reduce_in_amalgam(self,x):
505
505
p = self .p
506
506
denval = self .Gn ._denominator_valuation
507
507
if self .Gpn ._denominator (x ) == 1 :
508
- return x ,[]
508
+ return x , []
509
509
else :
510
510
gis = [ g ** - 1 for g in self .get_BT_reps ()]
511
511
gitildes = [self .Gn .B (1 )] + [ g ** - 1 for g in self .get_BT_reps_twisted ()[1 :]]
@@ -526,12 +526,11 @@ def _reduce_in_amalgam(self,x):
526
526
527
527
if self .Gpn ._denominator (x ) == 1 :
528
528
return x , [wd0 ]
529
-
530
529
i = next ((i for i ,g in enumerate (gitildes ) if denval (x * g ,p ) < valx ),0 )
531
530
assert i > 0
532
531
wd1 = (i ,1 )
533
532
x = set_immutable (x * gitildes [i ])
534
- a ,wd = self ._reduce_in_amalgam (x )
533
+ a , wd = self ._reduce_in_amalgam (x )
535
534
return a , wd + [wd1 ,wd0 ]
536
535
537
536
def smoothen (self ,gi ,ell ,hecke_reps = None ):
You can’t perform that action at this time.
0 commit comments