Skip to content

BUG: Fix SNIRF landmark length unit scaling - #14354

Merged
larsoner merged 1 commit into
mne-tools:mainfrom
kalomak:fix-snirf-landmark-units
Sep 29, 2026
Merged

larsoner merged 1 commit into
mne-tools:mainfrom
kalomak:fix-snirf-landmark-units

Conversation

@kalomak

@kalomak kalomak commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Reference issue (if any)

None.

What does this implement/fix?

read_raw_snirf divided landmarkPos3D by the length unit scale instead of multiplying. For files in mm, fiducials ended up 1e6 too far, e.g. lumomat nasion at 214 km instead of 0.21 m.

@kalomak
kalomak marked this pull request as ready for review September 29, 2026 12:42
@larsoner

Copy link
Copy Markdown
Member

Yikes! Thanks @kalomak

@larsoner
larsoner merged commit a48eb73 into mne-tools:main Sep 29, 2026
26 checks passed
larsoner added a commit to larsoner/mne-python that referenced this pull request Oct 1, 2026
* upstream/main: (26 commits)
  Splitting _brain.py into multiple modules (phase 1) (mne-tools#14359)
  Fix small corner-case bug with moments (mne-tools#14364)
  Coregistration GUI modernisation (phase 5) (mne-tools#14353)
  FIX: Prevent memory leak in RawArray by removing data from _init_kwargs (mne-tools#14360)
  MAINT: Update code credit (mne-tools#14365)
  type-hint the rest of mne/_fiff (mne-tools#14352)
  MAINT: Update dependency specifiers (mne-tools#14362)
  MAINT: Update dependency specifiers (mne-tools#14357)
  Switch to mne-tools SPEC-0 action (mne-tools#14356)
  MAINT: Move Pixi file updates to autofix workflow (mne-tools#14345)
  BUG: Fix SNIRF landmark length unit scaling (mne-tools#14354)
  DRY dipole code and comment on implementation (mne-tools#14350)
  Speed up CSD and PSD computations (mne-tools#14355)
  [dependabot]: Bump the actions group with 4 updates (mne-tools#14349)
  MAINT: Update pre-commit hook versions (mne-tools#14347)
  Switch to `mne-tools/rename-towncrier` action (mne-tools#14344)
  Fix for latest pyvista-js (mne-tools#14343)
  Avoid copies and support larger files in EEGLAB export (mne-tools#14338)
  Remove line breaks in sponsors check issue text (mne-tools#14337)
  Fix EEGLAB events after dropped epochs (mne-tools#14067)
  ...

# Conflicts:
#	mne/viz/_brain/_brain.py
#	mne/viz/backends/tests/test_renderer.py
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