3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 22:03:43 +01:00

Fix a missing mask in tail fit (imfreq)

I applied the patch provided by Thomas.

  modified:   pytriqs/gf/local/gf_imfreq.py
This commit is contained in:
Michel Ferrero 2013-12-19 11:54:44 +01:00
parent 80eb00046f
commit b7d7c656ce

View File

@ -136,6 +136,6 @@ class GfImFreq ( GfGeneric, GfImFreq_cython ) :
self.tail[order-1][n1,n2] = numpy.array([[ known_coef[n1][n2][order] ]]) self.tail[order-1][n1,n2] = numpy.array([[ known_coef[n1][n2][order] ]])
for order, moment in enumerate(sol[0]): for order, moment in enumerate(sol[0]):
self.tail[len(known_coef[n1][n2])+order-1][n1,n2] = numpy.array([[ moment ]]) self.tail[len(known_coef[n1][n2])+order-1][n1,n2] = numpy.array([[ moment ]])
self.tail.mask.fill(order_max)
# Replace then end of the Green's function by the tail # Replace then end of the Green's function by the tail
if replace_tail: self.replace_by_tail(ninit); if replace_tail: self.replace_by_tail(ninit);