When using read_raw_snirf, the implementation currently uses the Source and Detector index as given by sourceIndex and detectorIndex in /nirs/data1/[...]/ instead of using the mapping in /nirs/probe/sourceLabels|detectorLabels.
In cases where there a gaps in the sensor or detector numbers (e.g due to defect optodes), this leads to wrongly numbered channel when reading the snirf files.
Steps to reproduce
use io.read_raw_snirf to read any file that has non-continuous source or channel numbers
Expected results
Source and Channels numbers should reflect gaps in the montage
Actual results
Source and Channel number are continuously numbered irrespective of the montage.
When using read_raw_snirf, the implementation currently uses the Source and Detector index as given by sourceIndex and detectorIndex in /nirs/data1/[...]/ instead of using the mapping in /nirs/probe/sourceLabels|detectorLabels.
In cases where there a gaps in the sensor or detector numbers (e.g due to defect optodes), this leads to wrongly numbered channel when reading the snirf files.
Steps to reproduce
use io.read_raw_snirf to read any file that has non-continuous source or channel numbers
Expected results
Source and Channels numbers should reflect gaps in the montage
Actual results
Source and Channel number are continuously numbered irrespective of the montage.