AssetGraph.add_node#
- AssetGraph.add_node(node_for_adding, strict=True, **assets)[source]
Adds a node to the graph with the given assets.
It also checks if the assets values are consistent with their spaces.
- Parameters:
node_for_adding (str | None, optional) – The node to add. Defaults to None.
**assets – The assets of the node.
strict (bool, optional) – If True, raises an error if the assets are inconsistent. If False, logs a warning. Defaults to True.
- Raises:
ValueError – If the assets are inconsistent and strict is True.