Skip to content

Feature/td nirs snirf#1

Closed
jcrdubois wants to merge 7 commits into
mainfrom
feature/TD-nirs_snirf
Closed

Feature/td nirs snirf#1
jcrdubois wants to merge 7 commits into
mainfrom
feature/TD-nirs_snirf

Conversation

@jcrdubois
Copy link
Copy Markdown
Owner

Reference issue

this is an update to mne-tools#11064

What does this implement/fix?

  • removes tests featuring deprecated, non-compliant SNIRF file example
  • fixes unit for gated histograms
  • adds tests for gated histograms (Claude Opus 4.6 wrote these)

Additional information

N/A

jcrdubois added 7 commits May 29, 2026 13:38
Add support for time-domain NIRS data types including:
- TD gated histograms (fnirs_td_gated_amplitude)
- TD moments (intensity, mean, variance)
- Processed hemoglobin data (HbO/HbR)

Updates constants, channel picking, covariance, defaults, and the
SNIRF reader/tests to handle these new data types.
The old files (Portal_2021_11) don't conform to the SNIRF spec —
they store HbO/HbR in micromolar without declaring dataUnit. Rather
than adding heuristics, remove these tests. The files can be fixed
upstream by adding a proper dataUnit field to the HDF5.
Check shape, channel type, photon count range, and that channel
metadata (wavelength, time_delay * width) are populated.
TD gated channels measure photon counts from single-photon counting
detectors, not voltages. Use FIFF_UNIT_UNITLESS (matching
fnirs_td_moments_intensity) instead of FIFF_UNIT_V.
@jcrdubois jcrdubois closed this Jun 1, 2026
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