mirror of
https://github.com/fjosw/pyerrors.git
synced 2026-08-04 11:31:21 +02:00
[Fix] Fix exception messages
This commit is contained in:
parent
3ca4b18edb
commit
0f22d9fcc0
2 changed files with 2 additions and 2 deletions
|
|
@ -1404,7 +1404,7 @@ class Corr:
|
|||
if basematrix is None:
|
||||
basematrix = self
|
||||
if Ntrunc >= basematrix.N:
|
||||
raise ValueError(f'Cannot truncate using Ntrunc <= {basematrix.N}')
|
||||
raise ValueError(f'Cannot truncate using Ntrunc >= {basematrix.N}')
|
||||
if basematrix.N != self.N:
|
||||
raise ValueError('basematrix and targetmatrix have to be of the same size.')
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class Covobs:
|
|||
for i in range(self.N):
|
||||
for j in range(i):
|
||||
if not self._cov[i][j] == self._cov[j][i]:
|
||||
raise Exception(f'Covariance matrix is non-symmetric for ({i}, {j}')
|
||||
raise Exception(f'Covariance matrix is non-symmetric for ({i}, {j})')
|
||||
|
||||
evals = np.linalg.eigvalsh(self._cov)
|
||||
for ev in evals:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue