Skip to content

Commit 413c150

Browse files
committed
a few more details
1 parent 477a8f4 commit 413c150

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

src/sage/modular/modsym/ambient.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class ``ModularSymbolsAmbient``, derived from
2525
- ``ModularSymbolsAmbient_wtk_eps``, for modular symbols of general
2626
weight `k` and character `\epsilon`.
2727
28-
29-
3028
EXAMPLES:
3129
3230
We compute a space of modular symbols modulo 2. The dimension is
@@ -443,14 +441,12 @@ def _element_constructor_(self, x, computed_with_hecke=False):
443441
(1,35)
444442
sage: M([Cusp(1/2),Cusp(0)])
445443
(1,35)
446-
447-
448444
"""
449445
if isinstance(x, FreeModuleElement):
450446
if x.degree() != self.dimension():
451-
raise TypeError("Incompatible degrees: x has degree %s\
452-
but modular symbols space has dimension %s" % (
453-
x.degree(), self.dimension()))
447+
raise TypeError("Incompatible degrees: x has degree "
448+
f"{x.degree()} but modular symbols space has "
449+
f"dimension {self.dimension()}")
454450
return self.element_class(self, x)
455451

456452
elif isinstance(x, (ManinSymbol, element.ModularSymbolsElement)):
@@ -534,7 +530,6 @@ def _action_on_modular_symbols(self, g):
534530
[0 0 0 1]
535531
[0 1 0 0]
536532
[0 1 0 0]
537-
538533
"""
539534
if not isinstance(g, list):
540535
raise TypeError("g must be a list")
@@ -573,7 +568,7 @@ def manin_symbol(self, x, check=True):
573568
if x[0] < 0 or x[0] > self.weight() - 2:
574569
raise ValueError("The first entry of the tuple (=%s)\
575570
must be an integer between 0 and k-2 (=%s)." % (
576-
x, self.weight()-2))
571+
x, self.weight() - 2))
577572
else:
578573
raise ValueError("x (=%s) must be of length 2 or 3" % x)
579574
# end check
@@ -599,7 +594,7 @@ def _modular_symbol_0_to_alpha(self, alpha, i=0):
599594
600595
- ``alpha`` (rational or Infinity) -- a cusp
601596
602-
- ``i`` (int, default 0) -- the degree of the symbol.
597+
- ``i`` (int, default 0) -- the degree of the symbol
603598
604599
OUTPUT:
605600
@@ -659,7 +654,7 @@ def _modular_symbol_0_to_alpha(self, alpha, i=0):
659654
# method 1: write out solution. this is currently
660655
# incorrect, because it ends up doing 0^0 in the sum,
661656
# so I'll fix it and do timings soon.
662-
# for s in range(0,self.weight()-two+1):
657+
# for s in range(self.weight()-two+1):
663658
# coeff = sum([ binomial(i,t)*binomial(self.weight()-two-i,s-t)*
664659
# x**t * y**(i-t) * z**(s-t) *
665660
# w**(self.weight()-two-i-s+t) for t in range(0,s) ])
@@ -3744,8 +3739,8 @@ def _degeneracy_raising_matrix_1(self, M):
37443739
i = s.i
37453740
# We apply each matrix in H according to the above formula
37463741
for h in H:
3747-
hg = h*g
3748-
z += eps(h[0, 0])*M((i, hg[1, 0], hg[1, 1]))
3742+
hg = h * g
3743+
z += eps(h[0, 0]) * M((i, hg[1, 0], hg[1, 1]))
37493744
rows.append(z.element())
37503745
A = MS(rows)
37513746
return A

0 commit comments

Comments
 (0)