Skip to content

Commit

Permalink
Merge pull request #63 from wxtim/hilary.fix-graph-offset-opt2
Browse files Browse the repository at this point in the history
dict(was hiding stuff)
  • Loading branch information
hjoliver authored Dec 17, 2024
2 parents 4daaf8a + 8c03a53 commit 802f756
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cylc/flow/graph_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 sorted(pairs, key=lambda p: str(p[0])):
self._proc_dep_pair(pair, terminals)
Expand Down

0 comments on commit 802f756

Please sign in to comment.