mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01: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
|
||||
|
||||
def trace(self):
|
||||
"""Calculates the per-timeslice trace of a correlator matrix."""
|
||||
if self.N == 1:
|
||||
raise TypeError("Only works for correlator matrices.")
|
||||
newcontent = []
|
||||
|
|
Loading…
Add table
Reference in a new issue