-
Notifications
You must be signed in to change notification settings - Fork 2
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
annotations #14
annotations #14
Conversation
Cobord
commented
Aug 27, 2024
•
edited
Loading
edited
- Create directed graph when the network-type is directed so the from_hif produces either Graph or DiGraph depending on that
- Use TypedDict rather than an untyped Dict for the validate_hif because there is a fixed set of keys for all the things that can be wrong in the json and the values are only status codes
- Expand the tests so they use validate_hif to see what was wrong (if anything)
Hi @Cobord --- thanks for these contributions! Before we review this PR, can you write a description of what this PR changes/addresses/adds? Thanks! |
+1 to Nicholas' comment. FYI I just merged #13 and now this PR has a few conflicts. |
Fixed the conflicts |
@Cobord I'm happy to take some of these changes. For example the directed NetworkX graph test and implementation. There is more context you might not have like HNX impl here, but it's a great start. Is it OK if I ask to leave out non-functional changes? e.g typing, variable renaming. I agree those are good changes but at this time we need to keep it simple. |
What is the compatibility restriction? Because of Python ecosystem, that makes sense as typing being treated as not being simple (especially if you need pre-3.5). But renaming constants to capitalization and underscoring unused variables shouldn't have any issue with anywhere else and still be simple. |
We are purposefully ignoring these issues at the moment. This can wait until we set up a linter or similar. In the meantime it makes your changes harder to read and can generate more conflicts for others. I know the itch to fix simple things but as a maintainer it's better this way 🙏🏻 |
Cherry picking commit 6f173... |
Hi @Cobord --- thanks for this contribution. From looking at the changes and the corresponding discussion, it seems infeasible to implement right now. I would encourage you to break up this sizable PR into smaller pieces: (1) unit tests for the Github action to run, and (2) handling of directed networks in NetworkX. The contribution for |