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

No need to formulate flow for Terminal anymore #1357

Merged
merged 1 commit into from
Apr 8, 2024
Merged

Conversation

visr
Copy link
Member

@visr visr commented Apr 4, 2024

This was missed from #1300. We don't store vertical flows anymore. Doing this was the only reason for formulate_flows! for Terminal nodes.

What I don't fully understand is why tests did not fail on this. Any test model with a Terminal should have failed since the 3-arg add_flow!(graph, id, -q) it called was removed in #1300. This PR also removes the 4-arg version that is no longer used.

Copy link
Collaborator

@SouthEndMusic SouthEndMusic left a comment

Choose a reason for hiding this comment

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

I had a look at why the tests don't fail as you mentioned. It is because the way the test models with terminal nodes in them are initialized (without any data other than the node location), the Terminal \ static table is never initialized and thus never written, and so the terminal object is empty which is why the problematic code was never run. This would still have thrown an error for models in which the Terminal \ static table does exist.

@visr visr merged commit a5ee40f into main Apr 8, 2024
32 checks passed
@visr visr deleted the vertical-terminal branch April 8, 2024 09:48
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.

2 participants