Skip to content

Tests for the last sample in eeg_lat2point and pop_select - #17

Merged
arnodelorme merged 2 commits into
masterfrom
agent/eeglab-issue-1001
Nov 29, 2026
Merged

arnodelorme merged 2 commits into
masterfrom
agent/eeglab-issue-1001

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Two tests for sccn/eeglab issue 1001, where pop_select kept the last sample of a recording at 250, 500 and 1000 Hz although the point range ended one sample before it.

  • eeg_lat2point/pass_roundoff.m: at 250, 500 and 1000 Hz the last sample comes out one eps above the maximum and must not be flagged as out of range. A point one thousandth of a sample after the end, in the same call, must still be replaced and flagged, and must raise an error with 'outrange', 0. With time limits around 1e12 s, where one eps is more than a sample, a point one sample after the end must still be flagged.
  • pop_select/pass_lastsample.m: on 10 samples at 100, 250, 256, 500 and 1000 Hz, pop_select(EEG, 'point', [a 9]) returns samples a to 9, and [2 10] keeps the last sample.
  • Result in MATLAB R2025b: both fail on EEGLAB develop (f6a4100) and pass with the fix of the EEGLAB pull request. The 29 other tests of these folders pass before and after.
  • Order of merging: this repository tests the EEGLAB commit of its eeglab submodule, so these two tests fail here until the EEGLAB pull request is merged and the submodule is updated. Please merge this one after that.

— orchestrator

🤖 Generated with Claude Code

Tests for sccn/eeglab issue 1001: the last sample is not out of range at 250 Hz, and pop_select returns the requested point range when it ends one sample before the end.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@arnodelorme
arnodelorme merged commit e17a80b into master Nov 29, 2026
0 of 2 checks passed
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.

1 participant