huppertt / nirs-toolbox

Toolbox for fNIRS analysis
86 stars 61 forks source link

Possibility to refresh events based on the .evt file #7

Open benoitvalery opened 2 years ago

benoitvalery commented 2 years ago

Is your feature request related to a problem? Please describe. Sometimes, you might want to correct your triggers by hand, in the .evt file. For instance, you might have recorded an improper value. That was my case, I wanted to remove one trigger from my analysis. So I edited the .evt file. But I observed that this change did not affect the raw file, loaded with the nirs.io.loadNIRx function. I searched for the ".evt" expression in the whole library but it seems that this file is never processed.

Describe the solution you'd like It seems to me that it would be quite simple to have a function that reads the .evt file and propagates observed change in the raw structure. Something like a refreshEvents.m function, that would process the '.evt' file.

Thanks for your response or ideas. Benoît