-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sage.coding: Modularization fixes, doctest cosmetics, add # optional
#35729
sage.coding: Modularization fixes, doctest cosmetics, add # optional
#35729
Conversation
# optional
# optional
test fails:
|
the timeout in fusion_ring is unrelated |
pdf docs doesn't build, with an error I never saw:
|
Is that a local pdf build or are you reading this from the "CI PDF", which is known to be broken? |
CI pdf. Is it broken? |
Yes, it's broken, related to running tex as root with a weird home directory configuration |
hmm, is there an issue for this? |
Not yet; I haven't paged this out from my brain to a GH Issue. Tobias disabled the workflow in sagemath/sage, so there is no urgency |
src/sage/coding/abstract_code.py
Outdated
@@ -196,7 +197,7 @@ class AbstractCode(Parent): | |||
``MyDecoderClass``. | |||
|
|||
|
|||
As AbstractCode is not designed to be implemented, it does not have any | |||
As the class :class:`AbstractCode` is not designed to be instantiated, it does not have any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
80 columns mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed many of these in a67136a
7920 | ||
sage: G = C.permutation_automorphism_group() # long time (6s on sage.math, 2011) | ||
sage: G.is_isomorphic(M11) # long time | ||
sage: G = C.permutation_automorphism_group() # long time (6s on sage.math, 2011) # optional - sage.groups |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be we should update these long time statements. It should now be much less than the 6s of 2011 ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree; comments like this make our codebase look dated.
Probably best done in a separate PR, for all such annotations at the same time.
Documentation preview for this PR (built with commit 5aac3bf) is ready! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks a lot! |
📚 Description
Modularization fixes for imports (using
lazy_import
, moving imports from module level to method level).Adding a header line
# sage.doctest: optional - sage.modules sage.rings.finite_rings
to most files.Adding some more
# optional
to doctest lines.Some markup fixes for the documentation (such as fixing the accidental boxes around nest enumerations: https://doc.sagemath.org/html/en/reference/coding/sage/coding/guruswami_sudan/gs_decoder.html#sage.coding.guruswami_sudan.gs_decoder.GRSGuruswamiSudanDecoder)
Some reformatting of doctests so they can be read in HTML format without horizontal scrolling.
For example, fixing the documentation of AbstractLinearCode.automorphism_group_gens (new: https://deploy-preview-35729--sagemath-tobias.netlify.app/reference/coding/sage/coding/linear_code.html#sage.coding.linear_code.AbstractLinearCode.automorphism_group_gens)
📝 Checklist
⌛ Dependencies