Skip to content

Commit

Permalink
cmit
Browse files Browse the repository at this point in the history
  • Loading branch information
bhatt-priyadutt committed Dec 4, 2023
1 parent 619d894 commit 7190e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dowhy/gcm/equation_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def create_causal_model_from_equations(node_equations: str) -> StructuralCausalM
causal_nodes_info[node_name]["unknown"] = True
else:
custom_func, noise_eq = expression.rsplit("+", 1)
# Find all node names in the expression string
# Find all node names in the expression string.
parent_node_candidates = re.findall(_NODE_NAME_PATTERN, custom_func)
parent_nodes = _get_sorted_parent_nodes(parent_node_candidates)
_add_parent_nodes_to_graph(causal_graph, parent_nodes, node_name)
Expand Down

0 comments on commit 7190e30

Please sign in to comment.