Repository navigation
Raise ASRCalibrationError when an RMS fit width rounds to zero - #655
Merged
Merged
Conversation
Two or three calibration windows make round(n * width) include 0. clean_artifacts and pop_clean_rawdata skip burst repair, keep the sampling rate, and still remove bad windows. Co-authored-by: Suraj Ranganath <[email protected]>
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.
suraj-ranganath
marked this pull request as draft
November 18, 2026 20:17
suraj-ranganath
marked this pull request as ready for review
November 18, 2026 20:17
Keep the zero-scale channel ranking from #649 alongside the ASRCalibrationError raised when a fit width rounds to zero. Co-authored-by: Suraj Ranganath <[email protected]>
Keep the ASRCalibrationError changelog bullet, then the pop_loadstudy bullet from #653, then the existing Unreleased notes. Co-authored-by: Suraj Ranganath <[email protected]>
This was referenced Nov 21, 2026
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.
asr_calibrate raises ASRCalibrationError when round(n * width) includes 0, which happens for two or three RMS windows. clean_artifacts and pop_clean_rawdata skip burst repair, keep the sampling rate, and still run window removal. EEGLAB returns before both of those (clean_artifacts.m lines 270-275). The MATLAB reference suite was not run here.
Fixes #651