Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbinns committed May 23, 2024
1 parent a06353a commit 22a3275
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mne_connectivity/spectral/epochs_multivariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ def _compute_t(self, C_r, n_seeds):
return self._invsqrtm(C_r, n_seeds)
except np.linalg.LinAlgError as error:
raise RuntimeError(
"the transformation matrix of the data must be real-valued "
"and contain no NaN or infinity values; check that you are "
"using full rank data or specify an appropriate rank for the "
"seeds and targets that is less than or equal to their ranks"
"the transformation matrix of the data could not be computed "
"from the cross-spectral density; check that you are using "
"full rank data or specify an appropriate rank for the seeds "
"and targets that is less than or equal to their ranks"
) from error

def _invsqrtm(self, C_r, n_seeds):
Expand Down

0 comments on commit 22a3275

Please sign in to comment.