From 8c03a53a0abc9d1f65252adbb2bb77aa0abf81d5 Mon Sep 17 00:00:00 2001 From: Tim Pillinger <26465611+wxtim@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:47:54 +0000 Subject: [PATCH] dict(was hiding stuff) --- cylc/flow/graph_parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cylc/flow/graph_parser.py b/cylc/flow/graph_parser.py index dad8c5aeff..12da7873ef 100644 --- a/cylc/flow/graph_parser.py +++ b/cylc/flow/graph_parser.py @@ -470,8 +470,7 @@ def parse_graph(self, graph_string: str) -> None: pairs.add((chain[i], chain[i + 1])) # Get a set of RH nodes which are not at the LH of another pair: - pairs_dict = dict(pairs) - terminals = set(pairs_dict.values()).difference(pairs_dict.keys()) + terminals = {p[1] for p in pairs}.difference({p[0] for p in pairs}) for pair in pairs: self._proc_dep_pair(pair, terminals)