@@ -928,7 +928,8 @@ def normalize_coordinates(self, **kwds):
928
928
Defn: Defined on coordinates by sending (z : w) to
929
929
((3*a)*z^2 + (3*a)*w^2 : z*w)
930
930
"""
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
932
933
ideal = kwds .pop ('ideal' , None )
933
934
if ideal is not None :
934
935
from sage .rings .number_field .number_field_ideal import NumberFieldFractionalIdeal
@@ -960,6 +961,7 @@ def normalize_coordinates(self, **kwds):
960
961
min_val = min (valuations )
961
962
self .scale_by (uniformizer ** (- 1 * min_val ))
962
963
return
964
+
963
965
valuation = kwds .pop ('valuation' , None )
964
966
if valuation is not None :
965
967
from sage .rings .padics .padic_valuation import pAdicValuation_base
@@ -980,8 +982,6 @@ def normalize_coordinates(self, **kwds):
980
982
return
981
983
982
984
R = self .domain ().base_ring ()
983
- K = self .base_ring ()
984
- N = self .codomain ().ambient_space ().dimension_relative () + 1
985
985
986
986
# Only clear denominators from the coefficients in the ring of integers
987
987
if R in NumberFields ():
@@ -1007,6 +1007,8 @@ def normalize_coordinates(self, **kwds):
1007
1007
GCD = gcd (self [0 ], self [1 ])
1008
1008
index = 2
1009
1009
1010
+ N = self .codomain ().ambient_space ().dimension_relative () + 1
1011
+
1010
1012
while GCD != 1 and index < N :
1011
1013
GCD = gcd (GCD , self [index ])
1012
1014
index += + 1
0 commit comments