mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02: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]
|
sp_vec = sp_vecs[state]
|
||||||
return sp_vec
|
return sp_vec
|
||||||
elif sorted_list in ["Eigenvalue", "Eigenvector"]:
|
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 = []
|
all_vecs = []
|
||||||
for t in range(self.T):
|
for t in range(self.T):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue