AxisError: axis 1 is out of bounds for array of dimension 1

Platform macOS-11.7.10-x86_64-i386-64bit
Python 3.11.5
MNE 1.5.1

I made a small recording with an Artinis Oxymon. I used one detector and 4 sources, plus the continuous channel of a BNC (BNC3) to signal when different conditions started (rest, move right hand, move left hand).

After converting the .oxy3 file into snirf, I get this error in MNE when trying to import:
“AxisError: axis 1 is out of bounds for array of dimension 1”

However, I can load the snirf file in Homer3 without any problem.

here the link with the py code and the snirf file to recreate the problem

Any suggestions why I may get that error?

How did you convert the file to SNIRF?

There is a matlab conversion file you can ask to Artinis (they have the most udpated version). However, the error I was getting was due to having data organised in rows and not in columns (or viceversa).
At any rate, to convert oxy3 to snirf (Artinis with the new systems allows to save to snirf directly) I load the oxy3 file in matlab, convert the data into CSV, load them in MNE and create a snirf file from MNE using the online tutorial (MNE.
It takes some lines of code to make a proper snirf file using MNE (specifying channel infos and types) but it works in the end.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.