feat: runtime warning added when ts is used in combination with

sorted_list="Eigenvalue" in Corr.GEVP
This commit is contained in:
Fabian Joswig 2022-05-09 14:14:26 +01:00
parent 36001b2159
commit e557c9b54d

View file

@ -279,6 +279,8 @@ class Corr:
sp_vec = sp_vecs[state]
return sp_vec
elif sorted_list in ["Eigenvalue", "Eigenvector"]:
if sorted_list == "Eigenvalue" and ts is not None:
warnings.warn("ts has no effect when sorting by eigenvalue is chosen.", RuntimeWarning)
all_vecs = []
for t in range(self.T):
try: