mne-tools / mne-tools/mne-python
read_raw_nirx fails with NIRStar 15.1 data: RuntimeError: MNE does not support this NIRStar version ("15.1")
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.5k
- Forks
- 1.6k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 100
Description
Hello!
When attempting to read NIRx data recorded with NIRStar version 15.1, mne.io.read_raw_nirx() raises a runtime error:
RuntimeError: MNE does not support this NIRStar version ("15.1")
After inspection of the source code, the following code appears to be unsupported only for version 15.1
if hdr["GeneralInfo"]["NIRStar"] not in ['"15.0"', '"15.2"', '"15.3"']:
raise RuntimeError(
"MNE does not support this NIRStar version"
f" ({hdr['GeneralInfo']['NIRStar']})"
)
Want to know why and how to read data saved with NIRStar version 15.1
thx
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at mne.io.read_raw_nirx() and inspect the NIRStar version check shown in the issue. Compare NIRStar 15.1 headers with the supported versions and validate the reader against 15.1 data; done means that data loads without the unsupported-version error while existing supported versions continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100