propagate_data_to_dependencies#
- deeptrack.features.propagate_data_to_dependencies(feature: Feature, **kwargs: Dict[str, Any])#
Updates the properties of dependencies in a feature’s dependency tree.
This function iterates over all the dependencies of the given feature and sets the values of their properties based on the provided keyword arguments.
This function ensures that the properties in the dependency tree are dynamically updated based on the provided data.
Properties are only updated if the key exists in the PropertyDict of the dependency.
Parameters#
- featureFeature
The feature whose dependencies are to be updated. The dependencies are recursively traversed to ensure all relevant nodes in the dependency tree are considered.
- **kwargsDict[str, Any]
Key-value pairs specifying the property names (key) and their corresponding values (value) to be set in the dependencies. Only properties that exist in the dependencies are updated.