Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove workaround in example for infinite group recursion issue. #203

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions examples/WorkflowTraversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,8 @@
workflow_filename = "TraversalExample.pxcz"
workflow_path = os.path.join(cwd, workflow_filename)

elementCache = {}


def process_element(element):
#
# Make sure that we only process each element once. This will
# short-circuit a bug which causes groups to recurse infinitely.
#
if element.element_id in elementCache:
return
elementCache[element.element_id] = element
name = element.full_name
is_component = isinstance(element, grpcmc.component.Component)
is_control = isinstance(element, grpcmc.abstract_control_statement.AbstractControlStatement)
Expand Down
Loading