Skip to content

Add stopping condition for while loop #76

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

Merged
merged 1 commit into from
Apr 11, 2025
Merged

Add stopping condition for while loop #76

merged 1 commit into from
Apr 11, 2025

Conversation

ConorMcNamara
Copy link
Contributor

The while loop in robust.py assumes that we've specified a high enough threshold to end. However, if the threshold is low enough, we will continue looping until we try to access an element that is beyond the size of s, creating an error. We have now added a stopping condition to that.

The while loop in robust.py assumes that we've specified a high enough threshold to end. However, if the threshold is low enough, we will continue looping until we try to access an element that is beyond the size of s, creating an error. We have now added a stopping condition to that.
@sdfordham sdfordham merged commit 9aa6b54 into sdfordham:main Apr 11, 2025
12 checks passed
@sdfordham
Copy link
Owner

Thanks for the PR!

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