I’m facing a shape mismatch problem while working “Corrupt known signal with point spread”. I followed the example code provided, but I’m having trouble aligning the shapes of the generated simulated data and the estimated data from source localization. I am trying to compute the root mean square (RMS) between “stc_gen.data” and “stc_inv.data”. The error message I’m getting is “operands could not be broadcast together with shapes (6940, 100) (7498, 100)”. It seems that the shapes of the generated simulated data and the estimated data don’t match.
I verified that I’m using the same forward solution and inverse operator in both steps. The generated simulated data has a shape of (6940, 100), but the estimated data from source localization has a shape of (7498, 100), causing the shape mismatch.
I would appreciate any guidance on resolving this shape mismatch issue and ensuring consistent shapes between the simulated data and the estimated data from source localization.
I recommend you share links to the examples that you are talking about – that’d make it much easier for people to help you.
Sure, the links is " Corrupt known signal with point spread — MNE 1.4.2 documentation".