hydrautils
hydrautils ¶
module for utilities related to hydra
Functions¶
build_import_graph ¶
Builds a directed graph of the import hierarchy of the given root file. Args: root_file: Path to the yaml-root file of the import hierarchy search_paths: List of paths to search for imported yaml files Returns: import_graph: Directed graph of the import hierarchy
Source code in niceml/utilities/hydrautils.py
nx_to_mermaid ¶
Converts a networkx graph to a Mermaid.js graph string.
Source code in niceml/utilities/hydrautils.py
parse_defaults_content ¶
Parses the content of a defaults entry and returns the corresponding path.
Source code in niceml/utilities/hydrautils.py
traverse_import_hierarchy ¶
Traverses the import hierarchy of the given configuration file and adds the import edges to the import graph.