Repository navigation
Keep ASR lookahead on the original NaN samples - #529
Merged
suraj-ranganath merged 1 commit intoNov 4, 2026
Merged
Conversation
Contributor
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
asr_calibrate zeroed non-finite samples in the caller's array, so clean_asr reflected zeros instead of those NaNs. Copy before that write, and zero in asr_process only after the carry is prepended. Co-authored-by: Suraj Ranganath <[email protected]>
cursor
Bot
force-pushed
the
cursor/fix-clean-asr-nan-lookahead-528-5c19
branch
from
November 4, 2026 21:03
fe47551 to
3779c23
Compare
suraj-ranganath
marked this pull request as ready for review
November 4, 2026 21:23
Contributor
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
Contributor
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep NaNs in the array clean_asr reflects. clean_rawdata 85eab7d asr_calibrate.m:169 zeros non-finite samples on a copy-on-write argument, clean_asr.m:157 shares the recording when reference selection is off, and clean_asr.m:189 reflects it. asr_process.m:124-128 builds the carry from that data, prepends it, then zeros, so a reflected NaN becomes 0. EEGPrep zeroed the shared array, and channel index 1 samples 245-246 reflected as 133.655. asr_process now uses that order and does not edit its input. asr_calibrate_r.m:166 and asr_process_r.m:126-130 already match; the Riemannian ports already copy and zero after the prepend.
Fixes #528