Skip to content

Issue with node name that starts with another node's name #2257

Closed
@williford

Description

@williford

I think the line ~801 in util.py should be something like this:

        for node in graph_in.nodes():
            for src_id, edge_data in list(old_edge_dict.items()):
                if node.itername.startswith(src_id + '.'):  # <-- add '.' to src_id
                    expansions[src_id].append(node)

For example, if the node "input" feeds into "input_files", the "input_files" can be included if you just test for node.itername.startswith(src_id). This change would prevent "input_files" from being included.

Edit: removed last part of my comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions