Skip to content

Align better with WMA#13

Merged
rocky merged 6 commits intomasterfrom
section-module-revision
Feb 12, 2023
Merged

Align better with WMA#13
rocky merged 6 commits intomasterfrom
section-module-revision

Conversation

@rocky
Copy link
Copy Markdown
Member

@rocky rocky commented Feb 12, 2023

Graph Construction & Representation:
https://reference.wolfram.com/language/guide/GraphConstructionAndRepresentation.html

Move eval stuff to pymathics.graph.eval

@mmatera when I run tests I am seeing 9 tests fail now rather than 8. I am not sure where the additional test is coming from. I am too frazzled right now to investigate.

Also, I notice that we now have common docpipeline code 3 places now and if we continue this direction with pymathics-natlang there will be 4 places. We should DRY this code and add the common code to a new module mathics.doc.common_docpipeline. (Please let is not add to mathics.doc.common_doc which is large enough as it is and does related but separate stuff.

@rocky rocky force-pushed the section-module-revision branch from c1d40ae to 84b6c49 Compare February 12, 2023 06:44
@rocky rocky marked this pull request as draft February 12, 2023 07:09
@rocky rocky marked this pull request as ready for review February 12, 2023 07:10
Graph Construction & Representation:
https://reference.wolfram.com/language/guide/GraphConstructionAndRepresentation.html

Move eval stuff to pymathics.graph.eval
This might be temporay though based on WMA docs
@mmatera
Copy link
Copy Markdown
Contributor

mmatera commented Feb 12, 2023

Regarding docpipeline, I didn't copy here, but I am using the one in mathics-core. The idea is to reuse that one on each pymathics module.

* Graph options need to be in System context.
* Improve examples for GraphDistance and component sections
* Add GraphDistance summary
@rocky rocky force-pushed the section-module-revision branch from 84b6c49 to 91bef1e Compare February 12, 2023 18:15
Comment thread test/test_generators.py
evaluate("SortList[list_] := Sort[Map[Sort, list]]")


def test_connected_components():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where did this test go?

Copy link
Copy Markdown
Member Author

@rocky rocky Feb 12, 2023

Choose a reason for hiding this comment

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

In master at cb9f847 I am seeing this test twice. Once in test_algorithms.py, and once in test_generators.

But code in "algorithms" has been moved to components and other places. And there was a test in that which should have been in the non-existent test.test_base.

Commit 72f42d6 addresses both of these and reinstates another test that was commented out.

Copy link
Copy Markdown
Contributor

@mmatera mmatera left a comment

Choose a reason for hiding this comment

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

LGTM

and one of the tests in algorithms beloned in test_base.py
@rocky rocky force-pushed the section-module-revision branch from fbd8837 to 72f42d6 Compare February 12, 2023 22:06
@rocky rocky merged commit 37a58ab into master Feb 12, 2023
@rocky rocky deleted the section-module-revision branch February 12, 2023 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants