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

Fix-nested-sdfg-deepcopy #1221

Merged
merged 14 commits into from Mar 20, 2023
Merged

Fix-nested-sdfg-deepcopy #1221

merged 14 commits into from Mar 20, 2023

Conversation

alexnick83
Copy link
Contributor

This PR attempts to solve issues that arise when (deep) copying NestedSDFG nodes and nested SDFGs. When deep-copying an SDFG object, the "parent" attributes should now be set to None. Deep-copying a NestedSDFG node should now set the nested SDFGs parent_nsdfg_node attribute to the copy. Adding a NestedSDFG node to an SDFGState with the add_node method should properly update the nested SDFGs "parent" attributes.

…ibutes to None. The NestedSDFG class overrides the deepcopy method to set `_sdfg.parent_nsdfg_node` to itself.
@alexnick83 alexnick83 requested a review from tbennun March 16, 2023 21:44
Copy link
Collaborator

@tbennun tbennun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (how have we never seen this before). Any test you want to add?

@alexnick83 alexnick83 merged commit 202ad49 into master Mar 20, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants