Skip to content

ENH: add Raw annotation span conversion - #14240

Merged
larsoner merged 2 commits into
mne-tools:mainfrom
timothyanderson096-ocdealcheck:gdn-13890-annotation-span
Aug 31, 2026
Merged

ENH: add Raw annotation span conversion#14240
larsoner merged 2 commits into
mne-tools:mainfrom
timothyanderson096-ocdealcheck:gdn-13890-annotation-span

Conversation

@timothyanderson096-ocdealcheck

@timothyanderson096-ocdealcheck timothyanderson096-ocdealcheck commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Reference issue (if any)

Addresses #13890.

What does this implement/fix?

Raw.get_annotation_spans() computes all annotation spans at once as (tmin, tmax) pairs.

Additional information

Verification: 10 tests passed, 1 skipped because Qt was unavailable. Ruff checks and formatting checks passed.

AI/GDN disclosure:

GDN is an independent verification system that sits above AI and uses its own verification system in conjunction with AI. I have reviewed and understood the changes that were implemented and approve them. Once again, GDN is an independent verification system that sits above AI and can be used with any model. It just so happens that we are using ChatGPT with GPT-5.6 Sol at Ultra reasoning effort to complete our work.

Comment thread mne/io/base.py Outdated
Implements the get_annotation_spans() design suggested by @larsoner during review of mne-tools#14240.
@larsoner
larsoner enabled auto-merge (squash) August 31, 2026 17:57
@larsoner

Copy link
Copy Markdown
Member

Looks good, marking for merge-when-green, thanks in advance @timothyanderson096-ocdealcheck !

@larsoner
larsoner merged commit 7132645 into mne-tools:main Aug 31, 2026
31 checks passed
@welcome

welcome Bot commented Aug 31, 2026

Copy link
Copy Markdown

🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪

larsoner added a commit to larsoner/mne-python that referenced this pull request Sep 2, 2026
* upstream/main: (22 commits)
  Avoid copying all epochs data in GetEpochsMixin._getitem (mne-tools#14262)
  Add Report.save(only_if_changed=True) (mne-tools#14261)
  Add jamica to related software [ci skip] (mne-tools#14260)
  Remove debugging cruft (mne-tools#14259)
  ENH: add Raw annotation span conversion (mne-tools#14240)
  Interactive dipole fitting: add STC mesh controls (mne-tools#14256)
  Document code principles in AGENTS.md (mne-tools#14239)
  MAINT: Update dependency specifiers (mne-tools#14257)
  [dependabot]: Bump the actions group with 2 updates (mne-tools#14258)
  ENH: Add JAMICA as an ICA method (mne-tools#14247)
  Reuse the MEF session across reads (mne-tools#14254)
  Read KIT data in cache-sized blocks (mne-tools#14255)
  Read EGI simple-binary event channels in blocks (mne-tools#14250)
  Decode Persyst and Nihon Kohden data in cache-sized blocks (mne-tools#14251)
  Normalize byte order before calibrating strided integer buffers (mne-tools#14252)
  Speed up EDF and BDF reading (mne-tools#14237)
  ENH: Add Forward-based projection reconstruction (mne-tools#14235)
  Read Artemis123, Curry, EEGLAB, Eximia, FIL and NSx in cache-sized blocks (mne-tools#14246)
  Remove rotating dipoles capability from interactive dipole fitting GUI (mne-tools#14243)
  Read BrainVision data in cache-sized blocks [ci skip] (mne-tools#14241)
  ...
larsoner added a commit to natinew77-creator/mne-python that referenced this pull request Sep 3, 2026
* upstream/main: (37 commits)
  Speed up evoked time plotting (mne-tools#14249)
  Persist the numba JIT cache, sysmon coverage, refleak freeze (mne-tools#14265)
  Fix interpolate_to spline target positions (mne-tools#14266)
  CI reduce package builds on pull requests (mne-tools#14264)
  Avoid copying all epochs data in GetEpochsMixin._getitem (mne-tools#14262)
  Add Report.save(only_if_changed=True) (mne-tools#14261)
  Add jamica to related software [ci skip] (mne-tools#14260)
  Remove debugging cruft (mne-tools#14259)
  ENH: add Raw annotation span conversion (mne-tools#14240)
  Interactive dipole fitting: add STC mesh controls (mne-tools#14256)
  Document code principles in AGENTS.md (mne-tools#14239)
  MAINT: Update dependency specifiers (mne-tools#14257)
  [dependabot]: Bump the actions group with 2 updates (mne-tools#14258)
  ENH: Add JAMICA as an ICA method (mne-tools#14247)
  Reuse the MEF session across reads (mne-tools#14254)
  Read KIT data in cache-sized blocks (mne-tools#14255)
  Read EGI simple-binary event channels in blocks (mne-tools#14250)
  Decode Persyst and Nihon Kohden data in cache-sized blocks (mne-tools#14251)
  Normalize byte order before calibrating strided integer buffers (mne-tools#14252)
  Speed up EDF and BDF reading (mne-tools#14237)
  ...
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.

2 participants