BUNPC / Homer3

MATLAB application for fNIRS data processing and visualization
93 stars 55 forks source link

[BUG]: Error loading snirf files #164

Open JonteP opened 1 year ago

JonteP commented 1 year ago

Version of Homer3 you are using

v1.71.1

Your environment (MATLAB environment and OS)

MATLAB R2022a, Windows 10 64-bit

Description of the issue

I refer to the bug report I filed here: https://github.com/fieldtrip/fieldtrip/issues/2198 It seems to be the same issue with the official Homer3.

Steps to reproduce: Download e.g. the fnirs_tapping dataset: https://doi.org/10.5281/zenodo.5529797 Run: snirf=SnirfClass snirf.Load(snirf-file)

Expected behavior: This should return 0, contain a stimClass, probeClass and auxClass.

Actual behavior: It will return -1, contain a deleted stimClass and empty probeClass and auxClass. This is a downstream effect of strings not being read properly.