-
Notifications
You must be signed in to change notification settings - Fork 8
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
Adopt code from py2neo to remove the use of the id
function in cypher queries
#302
Conversation
Code included from py2neo is under the apache 2.0 license and therefore we need to include a copy of apache 2.0 along with a NOTICE with information on our changes to the code.
Closes #291. |
id
function in cypher queries
id
function in cypher queriesid
function in cypher queries
Our documentation is numpy style. The adopted docstrings have been modified to be consistent.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #302 +/- ##
==========================================
- Coverage 80.28% 80.18% -0.10%
==========================================
Files 27 27
Lines 3454 3472 +18
==========================================
+ Hits 2773 2784 +11
- Misses 681 688 +7 ☔ View full report in Codecov by Sentry. |
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.
Looks great @ianmkenney! Merge when satisfied; I only found 1 typo.
NOTICE
Outdated
- switched all usage of the id function to elementId | ||
|
||
- alchemiscale/storage/subgraph.py | ||
- Functions modified form the py2neo.data module: |
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.
- Functions modified form the py2neo.data module: | |
- Functions modified from the py2neo.data module: |
The unmaintained
py2neo
package generated queries contain functions that are deprecated. In order to avoid the a torrent of deprecation warnings in the near future and broken functionality on the next major release of neo4j, we are adopting the query generators from within py2neo and modifying them to satisfy our needs in alchemiscale.In compliance with the Apache v2.0 license, we are providing a copy of the Apache v2.0 license with our distribution and providing a NOTICE containing a log of our modifications.