Skip to content

Keep ASR lookahead on the original NaN samples - #529

Merged
suraj-ranganath merged 1 commit into
developfrom
cursor/fix-clean-asr-nan-lookahead-528-5c19
Nov 4, 2026
Merged

suraj-ranganath merged 1 commit into
developfrom
cursor/fix-clean-asr-nan-lookahead-528-5c19

Conversation

@suraj-ranganath

Copy link
Copy Markdown
Member

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

Open in Web Open in Cursor 

@claude

claude Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
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
cursor Bot force-pushed the cursor/fix-clean-asr-nan-lookahead-528-5c19 branch from fe47551 to 3779c23 Compare November 4, 2026 21:03
@suraj-ranganath
suraj-ranganath marked this pull request as ready for review November 4, 2026 21:23

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

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.

@suraj-ranganath
suraj-ranganath merged commit 0630cd3 into develop Nov 4, 2026
10 of 11 checks passed
@claude

claude Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

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.

[fuzz] clean_asr|numeric|1e1

2 participants