-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in
verdi process show
where not all called processes are shown
The utility `get_node_info` was called by `verdi process show` to format a multiline string of the given process node, including all the inputs and called processes. The function used the `LinkManager.nested` to reconstruct a nested representation of the relevant set of neighboring nodes. This is useful for the inputs and outputs that can in fact be nested and have unique labels, however, for called links, the link labels are not necessarily unique and so the dictionary returned by the nested method could only represent a single called process with the same link label. To fix this we use a different formatter that simply takes the list of neighboring nodes, which then does not care about label uniqueness. Since the `nested` method was silently overwriting duplicate keys, which caused this bug, its behavior is adapted to raise a `KeyError` in this situation.
- Loading branch information
Showing
3 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters