mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02: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):
|
def trace(self):
|
||||||
"""Calculates the per-timeslice trace of a correlator matrix."""
|
"""Calculates the per-timeslice trace of a correlator matrix."""
|
||||||
if self.N == 1:
|
if self.N == 1:
|
||||||
raise TypeError("Only works for correlator matrices.")
|
raise ValueError("Only works for correlator matrices.")
|
||||||
newcontent = []
|
newcontent = []
|
||||||
for t in range(self.T):
|
for t in range(self.T):
|
||||||
if _check_for_none(self, self.content[t]):
|
if _check_for_none(self, self.content[t]):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue