Skip to content

Conversation

fchapoton
Copy link
Contributor

@fchapoton fchapoton commented Oct 6, 2025

so that

  • there is a global "optional macaulay2" doctest marker
  • almost all doctests pass, although there remains an issue about ChainComplex
  • conversion of polynomials uses a dict rather than a string
  • conversion of rationals use numerator / denominator rather than a string

Note that the conversion of ChainComplexes works, there is only a failure when running "sage -t"

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.

Copy link

github-actions bot commented Oct 6, 2025

Documentation preview for this PR (built with commit e6756ce; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rude...

n = ZZ(n)
if n.is_prime():
return GF(n)
else:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove else

if cls_str == "ZZ":
from sage.rings.integer_ring import ZZ
return ZZ(repr_str)
elif cls_str == "QQ":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if

@dcoudert
Copy link
Contributor

dcoudert commented Oct 8, 2025

lint error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants