Add a comment to the output of process_ft_freqstatistic

Dear all,

I am having troubles in renaming from script the output from a call to process_ft_freqstatistic.

It works fine when adding a tag manually from the GUI, but it fails when I try to do it from pipeline/script. It seems that the time-frequency map with the statistical results is not allowed as input since I get:

Error: Data type mismatch

Nevertheless, searching a little into the source code it seems to me that the function process_set_comment.m should allow this kind of input (line 37).

I will be very grateful if someone can point me at where I am doing something wrong.


Indeed, the process "Set name" was not accepting stat results in input. I fixed this in this commit:

Update Brainstorm to get this fix.
Thanks for reporting the issue.

1 Like