mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
feat: exception type for correlator trace of 1dim correlator changed.
This commit is contained in:
parent
4467a2777f
commit
9bf4a9f20d
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ class Corr:
|
|||
def trace(self):
|
||||
"""Calculates the per-timeslice trace of a correlator matrix."""
|
||||
if self.N == 1:
|
||||
raise TypeError("Only works for correlator matrices.")
|
||||
raise ValueError("Only works for correlator matrices.")
|
||||
newcontent = []
|
||||
for t in range(self.T):
|
||||
if _check_for_none(self, self.content[t]):
|
||||
|
|
Loading…
Add table
Reference in a new issue