-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt code from py2neo to remove the use of the
id
function in cyph…
…er queries (#302) We are adopting the query generators from within py2neo and modifying them to satisfy our needs in alchemiscale. This is needed because the `id` function is deprecated, flooding outputs with deprecation warnings. Code included from py2neo is under the Apache v2.0 license and therefore we need to include a copy of Apache v2.0 along with a NOTICE with information on our changes to the code.
- Loading branch information
1 parent
6d2dd5a
commit 2cf0ab5
Showing
4 changed files
with
398 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# NOTICE | ||
|
||
This project includes software developed by py2neo (https://github.com/neo4j-contrib/py2neo/tree/master). | ||
|
||
## Original NOTICE | ||
|
||
py2neo | ||
Copyright (c) "Neo4j" | ||
Neo4j Sweden AB [https://neo4j.com] | ||
|
||
This product includes software developed by | ||
Neo4j, Inc. <drivers@neo4j.com>. | ||
|
||
This product includes software developed by | ||
Nigel Small <technige@nige.tech>. | ||
|
||
This product includes software developed by | ||
Simon Harrison <noisyboiler@googlemail.com>. | ||
|
||
This product includes software developed by | ||
Marcel Hellkamp <https://bottlepy.org>. | ||
|
||
## Modifications | ||
|
||
- alchemiscale/storage/cypher.py | ||
- Functions modified from the py2neo.cypher.queries module: | ||
- _match_clause | ||
- Modifications made: | ||
- switched all usage of the id function to elementId | ||
|
||
- alchemiscale/storage/subgraph.py | ||
- Functions modified from the py2neo.data module: | ||
- Subgraph.__db_merge__ (moved to merge_subgraph) | ||
- Subgraph.__db_create__ (moved to create_subgraph) | ||
- Modifications made: | ||
- switched all usage of the id function to elementId | ||
- removed the usage of py2neo database connections | ||
and replaced them with the official neo4j driver |
Oops, something went wrong.