MCLF / mclf

A Sage toolbox for computations with Models of Curves over Local Fields
GNU General Public License v2.0
7 stars 4 forks source link

´RationalFunctionField` causes problems #134

Open swewers opened 1 week ago

swewers commented 1 week ago

In Sage 10.4,

sage: F0. = FunctionField(QQ) sage: R. = F0[] sage: F. = F0.extension(y^2-x^3-x) sage: Y = SmoothProjectiveCurve(F)

gives the error message

ImportError: cannot import name 'RationalFunctionField' from 'sage.rings.function_field.function_field' (/home/stefan/code/sage/sage/src/sage/rings/function_field/function_field.py)

The problem is the line

assert isinstance(F, RationalFunctionField)

in "smooth_projective_curves.py".

As a preliminary fix, I would just remove this line. But what would the good solution be here?

fchapoton commented 2 days ago

from sage.rings.function_field.function_field_rational import RationalFunctionField