workaround for m_eff sinh in the middle of the lattice

This commit is contained in:
Fabian Joswig 2021-10-15 16:02:17 +01:00
parent 1972f38cb9
commit 5f1fb285f5
3 changed files with 6 additions and 2 deletions

View file

@ -274,6 +274,9 @@ class Corr:
for t in range(self.T - 1):
if (self.content[t] is None) or (self.content[t + 1] is None):
newcontent.append(None)
# Fill the two timeslices in the middle of the lattice with their predecessors
elif variant == 'sinh' and t in [self.T / 2, self.T / 2 - 1]:
newcontent.append(newcontent[-1])
else:
newcontent.append(np.abs(find_root(self.content[t][0] / self.content[t + 1][0], root_function, guess=guess)))
if(all([x is None for x in newcontent])):