Skip to content

Commit 50205e1

Browse files
committed
projective_morphism.py: Format doc
1 parent 6467855 commit 50205e1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/sage/schemes/projective/projective_morphism.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,8 @@ def normalize_coordinates(self, **kwds):
928928
Defn: Defined on coordinates by sending (z : w) to
929929
((3*a)*z^2 + (3*a)*w^2 : z*w)
930930
"""
931-
# if ideal or valuation is specified, we scale according the norm defined by the ideal/valuation
931+
# If ideal or valuation is specified, we scale according the norm
932+
# defined by the ideal/valuation
932933
ideal = kwds.pop('ideal', None)
933934
if ideal is not None:
934935
from sage.rings.number_field.number_field_ideal import NumberFieldFractionalIdeal
@@ -960,6 +961,7 @@ def normalize_coordinates(self, **kwds):
960961
min_val = min(valuations)
961962
self.scale_by(uniformizer**(-1 * min_val))
962963
return
964+
963965
valuation = kwds.pop('valuation', None)
964966
if valuation is not None:
965967
from sage.rings.padics.padic_valuation import pAdicValuation_base
@@ -980,8 +982,6 @@ def normalize_coordinates(self, **kwds):
980982
return
981983

982984
R = self.domain().base_ring()
983-
K = self.base_ring()
984-
N = self.codomain().ambient_space().dimension_relative() + 1
985985

986986
# Only clear denominators from the coefficients in the ring of integers
987987
if R in NumberFields():
@@ -1007,6 +1007,8 @@ def normalize_coordinates(self, **kwds):
10071007
GCD = gcd(self[0], self[1])
10081008
index = 2
10091009

1010+
N = self.codomain().ambient_space().dimension_relative() + 1
1011+
10101012
while GCD != 1 and index < N:
10111013
GCD = gcd(GCD, self[index])
10121014
index += +1

0 commit comments

Comments
 (0)