gftool.pade.FilterNegImagNum

gftool.pade.FilterNegImagNum(abs_num=None, rel_num=None)[source]

Return function to check how bad the imaginary part gets.

This methods is designed to create valid_pades for Averager. The imaginary part of retarded Green’s functions and self-energies must be negative, this is checked by this filter. All continuations that are valid in this sense are kept, the worst invalid are dropped till only abs_num remain.

Warning

Only checked for flat inputs.