-
Notifications
You must be signed in to change notification settings - Fork 113
Merge Graph into Network #1256
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
Merge Graph into Network #1256
Conversation
4708ff2 to
9702d00
Compare
gonzalocasas
left a comment
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.
generally lgtm, although it's a lot of code for an in-depth review, but since most of it is just moved, I think the risk is minimal
| from random import sample | ||
| from ast import literal_eval | ||
| from itertools import combinations | ||
|
|
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 think imports need to be isorted
CHANGELOG.md
Outdated
|
|
||
| ### Changed | ||
|
|
||
| * Merged `compas.datastructures.Graph` into `compas.datastructures.Network`. |
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.
Isn't it the other way around?
| * Merged `compas.datastructures.Graph` into `compas.datastructures.Network`. | |
| * Merged `compas.datastructures.Network` into `compas.datastructures.Graph`. |
| :meth:`from_networkx` | ||
| :meth:`from_graphx` |
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.
This is one search-n-replace too much, this is from_networkx still ;)
tests/compas/data/test_dataschema.py
Outdated
| ], | ||
| ) | ||
| def test_schema_graph_valid(graph): | ||
| def test_schema_graphalid(graph): |
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.
typo?
| # ============================================================================== | ||
|
|
||
|
|
||
| def test_network_to_networkx(): |
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.
| def test_network_to_networkx(): | |
| def test_graph_to_networkx(): |
What type of change is this?
Checklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.CHANGELOG.mdfile in theUnreleasedsection under the most fitting heading (e.g.Added,Changed,Removed).invoke test).invoke lint).compas.datastructures.Mesh.