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: Indent code to ensure 'j' is within for-loop in GQRS algorithm #489

Closed
wants to merge 1 commit into from

Conversation

Biboulder
Copy link

@Biboulder Biboulder commented Jun 6, 2024

The variable j was not properly scoped within the for-loop in the sm method, leading to an UnboundLocalError when j was accessed outside the loop.

@tompollard
Copy link
Member

@Biboulder Thanks for picking this up! Please could you rebase the pull request on the main branch, and if possible add a simple test that covers the UnboundLocalError?

@tompollard
Copy link
Member

I rebased on main and opened a new PR: #499

@tompollard tompollard closed this Jul 9, 2024
tompollard added a commit that referenced this pull request Jul 10, 2024
…499)

As discussed in #489:

> "The variable j was not properly scoped within the for-loop in the sm
method, leading to an UnboundLocalError when j was accessed outside the
loop."

#489 needs rebasing on the
main branch to allow tests to run.

This pull request is just a cherry-pick of the commit in
#489, on top of the current
version of main (I can't push to the other branch directly, because its
on a forked repo).
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