ReducePoles
Gout = ResponseFunction.ReducePoles(Gin, NPoles) or Gout = ResponseFunction.ReducePoles(Gin, NPolesVal, NPolesCon) reduces the number of poles in Gin to NPoles or to NValPoles+NConPoles by merging poles close to each other with small spectral weight (residue) (see appendix of |Phys. Rev. B 90, 085102 for additional information). The algorithm with NValPoles and NConPoles set does not shift spectral weight between the conduction and valence states (set by the chemical potential).