Generate surrogate data error

Hi @Samiee,

I am on the latest version of brainstorm and I am still having the same issues.
Under tPAC -> surrogate tPAC is still greyed out. And extracting comodulogram doesn't work either. It produces the error that I have posted above.

For all these operations I am using tPAC: ROI (Full) matrix as input (over multiple trials and subjects). Any help would be highly appreciated.

I am running BST on a Centos server.

Edit: When I run the average tPAC under basic analysis of tPAC maps. The output is a mean tPAC for every participant for every trial, instead of one representative tPAC map across the whole group.