I am encountering this following error when I'm running the analysis:
Function hmrR_PruneChannels generated error at line 75: Index in Position 1 exceeds array bounds (Must not exceed 2229).
I have to analyse over 400 snirf files and approximately 30% of my data have this error. Does anyone know what it is about? Thanks!
Please send us one of the snirf files that you have the issue with so that we can reproduce the error.
Here is an example. By the way, I am using the last version of Homer3 (v.1.31.13)
Thanks a lot
NaN function is breaking since you have a channel (ch24) consists of all NaNs, and the code cannot perform interpolation. I can add a quick fix to the code so that it skips those channels. Prunechannel function worked without an issue with the snirf files you sent.
The change is now in the development version.