Skip to content

Forward the learn argument from xqrs_detect to XQRS.detect#569

Open
arpitjain099 wants to merge 1 commit into
MIT-LCP:mainfrom
arpitjain099:chore/xqrs-detect-forward-learn
Open

Forward the learn argument from xqrs_detect to XQRS.detect#569
arpitjain099 wants to merge 1 commit into
MIT-LCP:mainfrom
arpitjain099:chore/xqrs-detect-forward-learn

Conversation

@arpitjain099

@arpitjain099 arpitjain099 commented Jun 26, 2026

Copy link
Copy Markdown

xqrs_detect() documents a learn argument but the wrapper never passed it through to XQRS.detect(), so it was silently dropped and learning always ran even with learn=False. One-line fix to forward it. Added a regression test that patches XQRS.detect and checks learn actually arrives; it fails on the old code and passes with the fix. Put it in a Test-prefixed class so pytest collects it (the existing test_qrs class name isn't picked up by default).

Closes #473

xqrs_detect accepts a learn parameter and documents it, but the call to
XQRS.detect never passed it on, so learn=False was silently ignored and
learning always ran. Pass learn=learn through to the detector and add a
regression test that asserts the argument is forwarded.

Closes MIT-LCP#473

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
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.

wfd.processing.qrs.xqrs_detect() does not pass the learn parameter to xqrs.detect()

1 participant