Open YonatanGideoni opened 3 months ago
Adding that line has consequences for the beamforming, which likely will invalid it. It's unlikely we would implement this change.
I suspect your error arises due to a miss match between the channel types used to make the beamformer and the channel types it's applied to, or something similar along those lines.
Can you copy and paste your config.
A better solution might be to add more comprehensive validation of the source reconstruction parameters.
Summary: When beamforming, eg. when using
beamform_and_parcellate
, the given rank can be larger than the covariance matrix' dimensions.Versions: Ubuntu 20.04 OSL version: 0.6
Expected behaviour: Use covariance mat's rank if given one is too big - this is likely due to numerical issues.
Example logs:
Possible fixes:
rank = min(rank, Cm.shape[0])