From 1c9b5570e36aaac584514b2d5b916f3245a39b51 Mon Sep 17 00:00:00 2001 From: bibek Date: Mon, 8 Jul 2024 11:11:08 +0545 Subject: [PATCH] since llpo is hidden, no need to remove from removed_nodes --- causing/graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/causing/graph.py b/causing/graph.py index 8f79d21..138ede2 100644 --- a/causing/graph.py +++ b/causing/graph.py @@ -238,8 +238,8 @@ def recalc_graphs(graphs, model, xdat) -> Iterable[networkx.DiGraph]: for i, approx_graph in enumerate(graphs): individual_xdat = xdat[:, i : i + 1] removed_nodes = set(model.graph.nodes) - set(approx_graph.nodes) - if "LLPO" in removed_nodes: - removed_nodes.remove("LLPO") + # if "LLPO" in removed_nodes: + # removed_nodes.remove("LLPO") # Calc effects on shrunken model individual_model = model.shrink(removed_nodes)