-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement newly formalized graph traversal rules for export (#3262)
Thew newly formalized graph traversal rules are implemented in the export interface. All twelve rules are used in traversing the graph based on an initial set of nodes, but only a few can have the default value overridden. Certain rules were decided not to be changeable and so passing them will result in an exception. Also the command line interface only exposed the toggleable flags. The graph traversal logic has been moved from the export function itself to a utility called `retrieve_linked_nodes`. Some duplication of queries has been removed to improve the efficiency. Archives now must be self-consistent in terms of the provenance graph it represents, i.e., all nodes mentioned in the list of links have to also be present in the archive. The danglink link checks can therefore be removed from the export and import logic.
- Loading branch information
Showing
9 changed files
with
798 additions
and
604 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
385 changes: 287 additions & 98 deletions
385
aiida/backends/tests/tools/importexport/orm/test_links.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.