mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
feat: runtime warning added when ts is used in combination with
sorted_list="Eigenvalue" in Corr.GEVP
This commit is contained in:
parent
36001b2159
commit
e557c9b54d
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue