Skip to content

Commit

Permalink
Two small changes (#1157)
Browse files Browse the repository at this point in the history
* Remove unwanted hard-breaks in Eigenvalues
* add `__all__` for imports in mathics.doc.common_doc
  • Loading branch information
rocky authored Nov 6, 2024
1 parent c5a9227 commit 6495274
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mathics/builtin/numbers/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ class Eigenvalues(Builtin):
<dl>
<dt>'Eigenvalues[$m$]'
<dd>computes the eigenvalues of the matrix $m$.
By default Sympy's routine is used. Sometimes this is slow and
less good than the corresponding mpmath routine. Use option Method->"mpmath" if you want
to use mpmath's routine instead.
By default, Sympy's routine is used. Sometimes this is slow and \
less good than the corresponding mpmath routine.
Use option Method->"mpmath" if you want to use mpmath's routine instead.
</dl>
Numeric eigenvalues are sorted in order of decreasing absolute value:
Expand Down
39 changes: 39 additions & 0 deletions mathics/doc/common_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,42 @@
MathicsMainDocumentation,
sorted_chapters,
)

__all__ = [
"ALLOWED_TAGS",
"ALLOWED_TAGS_RE",
"CONSOLE_RE",
"DL_ITEM_RE",
"DL_RE",
"DocChapter",
"DocGuideSection",
"DocPart",
"DocSection",
"DocSubsection",
"DocTest",
"DocTests",
"DocText",
"Documentation",
"DocumentationEntry",
"HYPERTEXT_RE",
"IMG_PNG_RE",
"IMG_RE",
"LATEX_RE",
"LIST_ITEM_RE",
"LIST_RE",
"MATHICS3_MODULES_TITLE",
"MATHICS_RE",
"MathicsMainDocumentation",
"PYTHON_RE",
"QUOTATIONS_RE",
"REF_RE",
"SPECIAL_COMMANDS",
"SUBSECTION_END_RE",
"SUBSECTION_RE",
"Tests",
"get_results_by_test",
"parse_docstring_to_DocumentationEntry_items",
"post_sub",
"pre_sub",
"sorted_chapters",
]

1 comment on commit 6495274

@rocky
Copy link
Member Author

@rocky rocky commented on 6495274 Nov 8, 2024

Choose a reason for hiding this comment

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

I am guessing that the failure we saw was related to a change in time from Daylight Savings to Standard time. Rerunning.

Please sign in to comment.