Skip to content

Commit

Permalink
fix linting in 38161
Browse files Browse the repository at this point in the history
  • Loading branch information
bhutz committed Nov 28, 2024
1 parent 21923da commit 9421420
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/dynamics/arithmetic_dynamics/projective_ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -2119,8 +2119,7 @@ def green_function(self, P, v, **kwds):
h = max([R(v)**(-R(c.valuation(v))) for c in poly.coefficients()])
else:
h = max([R(c.abs_non_arch(v, prec=prec)) for c in poly.coefficients()])
if h > maxh:
maxh = h
maxh = max(h, maxh)
if maxh == 0:
maxh = 1 #avoid division by 0
if isinstance(v, RingHomomorphism_im_gens): #archimedean
Expand Down

0 comments on commit 9421420

Please sign in to comment.