-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display config on visualization (#833)
Visualizations now display the config value instead of type Any. Also, nodes affected by configuration have the suffix node_name: config_key. While working on this feature, I realized all high-level viz function except display_all_functions() failed to show config nodes (#832). This is because it's the only function to pass the config via the nodes argument (type hamilton.node.Node) while other functions first filter a path of nodes, which excludes the config. Instead of a large refactoring, hamilton.graph.create_graphviz_graph() now has a kwarg config which raises an exception if left to None. It's the caller's responsibility to have this config match the actual config value that lead to the set of nodes passed. This unlikely to cause problem unless people dig into internal APIs. TL;DR: * visualizes config values * updated tests; added guardrail --------- Co-authored-by: zilto <tjean@DESKTOP-V6JDCS2>
- Loading branch information
Showing
3 changed files
with
111 additions
and
14 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
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