description: project selects a subtree of an expression.
View source on GitHub
|
project selects a subtree of an expression.
project is often used right before calculating the value.
expr = ...
new_expr = project.project(expr, [path.Path(["foo","bar"]),
path.Path(["x", "y"])])
[prensor_result] = calculate.calculate_prensors([new_expr])
prensor_result now has two paths, "foo.bar" and "x.y".
project(...): select a subtree.
View source on GitHub