mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 03:53:41 +02:00
docs: docstring added to Corr.trace.
This commit is contained in:
parent
c30c8ebe0b
commit
4df00d9bd7
1 changed files with 1 additions and 0 deletions
|
@ -255,6 +255,7 @@ class Corr:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def trace(self):
|
def trace(self):
|
||||||
|
"""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 TypeError("Only works for correlator matrices.")
|
||||||
newcontent = []
|
newcontent = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue