Problem with data_snirf

Hello,

I have been trying to import my SNIRF file into Brainstorm for several weeks, but I keep encountering an error related to the data_snirf function. I have included the error message below.

For context, the same file opens without any issues in Homer3, so I do not believe the file itself is corrupted.

Any help would be greatly appreciated.

Best regards,
Maxime

1 Like

I think this is an issue with shadowing the function loadjsnirf.

  1. Install the plugin jsnirfy

  2. In the Matlab Command Window run:
    which('loadjsnirf', '-all')
    it should give you the path of the function loadjsnirf in the installed plugin, e.g:
    .../.brainstorm/plugins/jsnirfy/jsnirfy-master/loadjsnirf.m

If it does not point to that file, that's is the issue, remove from the path the wrong loadjsnirf

1 Like

Thank you for your reply. That was indeed the problem. The plugin was loaded but I tried to update it and now it works.