[Fix] Fix exception messages

This commit is contained in:
Fabian Joswig 2026-07-06 10:55:46 +02:00
commit 0f22d9fcc0
2 changed files with 2 additions and 2 deletions

View file

@ -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.')

View file

@ -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: