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 bad assumption in oapply_typed #158

Merged
merged 2 commits into from
Jul 12, 2023
Merged

Fix bad assumption in oapply_typed #158

merged 2 commits into from
Jul 12, 2023

Conversation

epatters
Copy link
Member

Resolves #155. Note that the fix requires exposing the junctions in the UWD through outer ports, hence is also a breaking change. See the changes to the unit tests.

@epatters epatters added the bug Something isn't working label Jul 10, 2023
@epatters
Copy link
Member Author

epatters commented Jul 11, 2023

@mehalter, what do you think about the breaking aspect of this PR? To avoid a breaking change, we could modify the outer ports of the supplied UWD if they do not satisfy the required conditions (currently, it throws an errors). This would be slightly inelegant but not too bad.

@mehalter
Copy link
Member

@epatters thanks for looking into this! Yeah I agree it's a bit unfortunate for this to be a breaking change. I think for now it's a good idea to put in something slightly inelegant to avoid breaking things with a TODO comment indicating which code is a bit hacky and should be removed in the next breaking release. What do you think?

@epatters
Copy link
Member Author

OK, fixed! This should be ready to go now.

Copy link
Member

@mehalter mehalter left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks so much!

@mehalter mehalter merged commit b72368e into main Jul 12, 2023
9 checks passed
@mehalter mehalter deleted the fix-oapply-typed branch July 12, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

oapply_typed results in wrong wiring
2 participants