huppertt / nirs-toolbox

Toolbox for fNIRS analysis
91 stars 61 forks source link

nirs-toolbox generates snirf file with invalid stim field #43

Open snowuyl opened 9 months ago

snowuyl commented 9 months ago

Describe the bug I use nirs-toolbox to convert Hitachi csv file to snirf file. But Homer3 complains "stim field has corrupt data".

To Reproduce Steps to reproduce the behavior:

  1. raw = nirs.io.loadHitachiV2(''); % or nirs.io.loadHitachi nirs.io.saveSNIRF(raw, 'Hitachi_ETG4000_raw.snirf')
  2. Opening Hitachi_ETG4000_raw.snirf in Homer3

Expected behavior Generated snirf should not have "stim field has corrupt data" issue.

Desktop (please complete the following information):

snowuyl commented 9 months ago
Hitachi stim
snowuyl commented 9 months ago

stroop_fnirs.csv

snowuyl commented 9 months ago

ch_config.csv

snowuyl commented 9 months ago

optode_positions_MNI.csv