Skip to content

Commit aaacb9c

Browse files
committed
projective_morphis.py: Reformat some docstrings and comments
1 parent 5ca23a5 commit aaacb9c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/sage/schemes/projective/projective_morphism.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -792,25 +792,24 @@ def scale_by(self, t):
792792

793793
def normalize_coordinates(self, **kwds):
794794
"""
795-
Ensures that this morphism has integral coefficients, and,
796-
if the coordinate ring has a GCD, then it ensures that the
795+
Ensures that this morphism has integral coefficients.
796+
If the coordinate ring has a GCD, then it ensures that the
797797
coefficients have no common factor.
798798
799-
Also, makes the leading coefficients of the first polynomial
799+
It also makes the leading coefficients of the first polynomial
800800
positive (if positive has meaning in the coordinate ring).
801801
This is done in place.
802802
803-
When ``ideal`` or ``valuation`` is specified,
804-
normalization occurs with respect to the absolute value
805-
defined by the ``ideal`` or ``valuation``. That is, the
806-
coefficients are scaled such that one coefficient has
807-
absolute value 1 while the others have absolute value
808-
less than or equal to 1. Only supported when the base
809-
ring is a number field.
803+
When ``ideal`` or ``valuation`` is specified, normalization occurs
804+
with respect to the absolute value defined by the ``ideal`` or
805+
``valuation``. That is, the coefficients are scaled such that
806+
one coefficient has absolute value 1 while the others have
807+
absolute value less than or equal to 1.
808+
Only supported when the base ring is a number field.
810809
811810
INPUT:
812811
813-
keywords:
812+
kwds:
814813
815814
- ``ideal`` -- (optional) a prime ideal of the base ring of this
816815
morphism.
@@ -926,7 +925,7 @@ def normalize_coordinates(self, **kwds):
926925
Dynamical System of Projective Space of dimension 1 over
927926
Number Field in a with defining polynomial 3*x^2 + 1
928927
Defn: Defined on coordinates by sending (z : w) to
929-
((-3/2*a + 1/2)*z^2 + (-3/2*a + 1/2)*w^2 : (-3/2*a - 3/2)*z*w)
928+
((-3/2*a + 1/2)*z^2 + (-3/2*a + 1/2)*w^2 : (-3/2*a - 3/2)*z*w)
930929
931930
::
932931
@@ -1027,7 +1026,7 @@ def normalize_coordinates(self, **kwds):
10271026
if GCD != 1:
10281027
self.scale_by(R(1) / GCD)
10291028

1030-
# scales by 1/gcd of the coefficients.
1029+
# Scale by 1/GCD of the coefficients.
10311030
if R in _NumberFields:
10321031
O = R.maximal_order()
10331032
elif isinstance(R, FiniteField):
@@ -1042,8 +1041,9 @@ def normalize_coordinates(self, **kwds):
10421041

10431042
if GCD != 1:
10441043
self.scale_by(1 / GCD)
1044+
1045+
# If R is not p-adic, we make the first coordinate positive
10451046
from sage.rings.padics.padic_base_generic import pAdicGeneric
1046-
# if R is not padic, we make the first coordinate positive
10471047
if not isinstance(R, pAdicGeneric):
10481048
if self[0].lc() < 0:
10491049
self.scale_by(-1)

0 commit comments

Comments
 (0)