mne-tools / mne-tools/mne-python

RuntimeError: The time unit None is not supported by MNE. Please report this error as a GitHub issue to inform the developers.

Open
#12,277 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BUG
Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Description

Description of the problem

Hello,
I am writing to request help for loading snirf derivates (ie preprocessed in HOMER3) into mne which seems to not work with the mne.io.read_raw_snirf function since I am getting the error: "RuntimeError: The time unit None is not supported by MNE. Please report this error as a GitHub issue to inform the developers.".
Thanks in advance for your help.
Best regards,
Sélima

Steps to reproduce
1) exported derivate snirf from HOMER3

2) imported derivate snirf into mne: 

raw = mne.io.read_raw_snirf('C:/OneDrive/Twilight 1/Results/Oxysoft/Epochs/S'+participants[i]+'.snirf',
                               optode_frame='C:/OneDrive/fNIRS devices/Important OxySoft Files/optodetemplates.xml',preload=True)
Link to data

No response

Expected results

ProcStreamFunctionsSummary.txt
S01_processing.json

Actual results

image

Additional information

NA

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the mne.io.read_raw_snirf entry point and inspect the attached ProcStreamFunctionsSummary.txt and S01_processing.json for the time-unit metadata. Reproduce the failure with the HOMER3-derived SNIRF file if it can be obtained; done means the loader no longer raises this RuntimeError for the reported input, with regression coverage for the case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.