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

Explicitly filter excluded controllers when considering cartesian product #385

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

bgyori
Copy link
Member

@bgyori bgyori commented Oct 9, 2024

This PR addresses a corner case where all of the controllers of a given template are excluded from stratification but cartesian control is chosen to be True. Though stratification of these controllers didn't happen, the loop for the cartesian product still ran, creating multiple copies of the statement. This PR fixes that so that if all of the controllers are excluded then the cartesian product is not considered at all.

Fixes #384

@bgyori bgyori merged commit bfb0975 into main Oct 9, 2024
4 checks passed
@bgyori bgyori deleted the stratify_controllers branch October 9, 2024 19:45
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.

[BUG] Duplicate template generated when cartesian_control = True
1 participant