Error plotting source time course using LCMV beamformer approach

Hello all,

I am trying to compute inverse solutions using the LCMV Beamformer approach with my MEG data. I have individual subject MRIs that I am also using for each patient’s data. I am having no trouble creating the filters for the beamformer and applying them to the data to compute the inverse solution, but am encountering an error when visualizing it using the stc.plot function.

I am receiving this error: “HeaderDataError: shape (30, 39, 32, 432000) does not fit in dim datatype.”

I am wondering if anyone has ever received this type of error and what they did to remedy it. I have tried lowering the number of time points, but that is not working as well. Any and all help is much appreciated!

Thank you.

That error comes from nibabel, not from MNE-Python. Can you post the full traceback (not just the final line) so we can see where in our code it originates?

See attached. Thank you for your help.