Skip to content

Commit

Permalink
Fix nodes not in dep_graph being skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Aug 8, 2023
1 parent 2e635e5 commit 39c55ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ogc/bblocks/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def __init__(self,
found_deps.update(deps)
if found_deps:
bblock.metadata['dependsOn'] = list(found_deps)
dep_graph.add_node(bblock.identifier)
dep_graph.add_edges_from([(d, bblock.identifier) for d in bblock.metadata.get('dependsOn', ())])
cycles = list(nx.simple_cycles(dep_graph))
if cycles:
Expand Down

0 comments on commit 39c55ae

Please sign in to comment.