@@ -197,7 +197,7 @@ def unram_coords(frob_cycle_list, x_coord, y_centre, spread, col_max):
197197 point_index = 0 # total index of point
198198 for cyc_len , num_repeats in frob_cycle_list :
199199 for _ in range (num_repeats ):
200- y_offset = round (spread * ( 2 * point_index / ( N - 1 ) - 1 ))
200+ y_offset = round (spread * ( 2 * point_index / ( N - 1 ) - 1 ))
201201 point = Point (x_coord , y_centre - y_offset , cyc_len )
202202 point_list .append (point )
203203 point_index += 1
@@ -213,13 +213,13 @@ def ram_coords(local_alg_dict, p, x_coord, y_centre, spread, deg=1):
213213 N = len (algs )
214214 assert algs != [], f"Ramified prime { p } has no local data!"
215215
216- max_ram_index = max (e for e ,_ in algs )
216+ max_ram_index = max (e for e , _ in algs )
217217 point_list = []
218218
219219 for i , alg in enumerate (algs ):
220220 ram_index , residue_deg = alg
221221 if N != 1 :
222- y_offset = round (spread * ( 2 * i / ( N - 1 ) - 1 ))
222+ y_offset = round (spread * ( 2 * i / ( N - 1 ) - 1 ))
223223 else :
224224 y_offset = 0
225225 point = Point (x_coord , y_centre - y_offset , residue_deg , hsl_color (ram_index , max_ram_index ))
@@ -257,7 +257,7 @@ def test_drawspec(n=1, gaga=False):
257257 canvas = draw_spec (frobs , local_algs , True ,
258258 gaga = gaga ,num_primes = num_primes )
259259 import tempfile
260- filename = tempfile .gettempdir () + ('/gaga' if gaga else '/spec' ) + ".svg"
260+ filename = tempfile .gettempdir () + ('/gaga' if gaga else '/spec' ) + ".svg"
261261 with open (filename , mode = 'w' ) as f :
262262 f .write (canvas .as_str ())
263263
0 commit comments