Closed Biboulder closed 4 months ago
@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
?
I rebased on main and opened a new PR: https://github.com/MIT-LCP/wfdb-python/pull/499
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.