You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-39443: Implement correct iteration through disjoint enumerated set for infinite set
Previously, the iteration does not touch any finite set that comes after
an infinite set.
This fixes the issue.
It tries to not change the existing behavior whenever all element sets
are finite by checking for finiteness.
Meanwhile fix a genuine bug in `root_lattice_realizations` where
`DisjointUnionEnumeratedSets([self.positive_real_roots(),
self.positive_imaginary_roots()])` is returned, but both sets are
infinite, so iterating through it will never reach any element in the
second set.
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - #12345: short description why this is a dependency -->
<!-- - #34567: ... -->
URL: #39443
Reported by: user202729
Reviewer(s): Travis Scrimshaw, user202729
0 commit comments