docs: docstring added to Corr.trace.

This commit is contained in:
Fabian Joswig 2023-07-13 16:58:09 +01:00
parent c30c8ebe0b
commit 4df00d9bd7
No known key found for this signature in database

View file

@ -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 = []