Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit e003603

Browse files
author
Matthias Koeppe
committedOct 2, 2021
sage.dynamics: Fix up replacement of is_{Real,Complex}[Double]Field
1 parent 45cc21a commit e003603

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎src/sage/dynamics/arithmetic_dynamics/projective_ds.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ class initialization directly.
8888
from sage.rings.qqbar import QQbar, number_field_elements_from_algebraics
8989
from sage.rings.quotient_ring import QuotientRing_generic
9090
from sage.rings.rational_field import QQ
91-
from sage.rings.real_double import RDF
92-
from sage.rings.real_mpfr import (RealField, is_RealField)
91+
import sage.rings.abc
92+
from sage.rings.real_mpfr import RealField
9393
from sage.schemes.generic.morphism import SchemeMorphism_polynomial
9494
from sage.schemes.projective.projective_subscheme import AlgebraicScheme_subscheme_projective
9595
from sage.schemes.projective.projective_morphism import (
@@ -2062,10 +2062,10 @@ def canonical_height(self, P, **kwds):
20622062

20632063
# Archimedean local heights
20642064
# :: WARNING: If places is fed the default Sage precision of 53 bits,
2065-
# it uses Real or Complex Double Field in place of RealField(prec) or ComplexField(prec)
2066-
# the function is_RealField does not identify RDF as real, so we test for that ourselves.
2065+
# it uses Real or Complex Double Field in place of RealField(prec) or ComplexField(prec).
2066+
# RDF is an instance of a separate class.
20672067
for v in emb:
2068-
if isinstance(v.codomain(, sage.rings.abc.RealField)) or v.codomain() is RDF:
2068+
if isinstance(v.codomain(), (sage.rings.abc.RealField, sage.rings.abc.RealDoubleField)):
20692069
dv = R.one()
20702070
else:
20712071
dv = R(2)

0 commit comments

Comments
 (0)
This repository has been archived.