3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-23 12:55:17 +01:00

Remove show_warning again as it is not necessary anymore

This commit is contained in:
Hermann Schnait 2019-06-18 16:53:23 +02:00
parent a44f3d36f4
commit d66950a043

View File

@ -667,7 +667,7 @@ class SumkDFT(object):
return Sigma_out return Sigma_out
def extract_G_loc(self, mu=None, iw_or_w='iw', with_Sigma=True, with_dc=True, broadening=None, def extract_G_loc(self, mu=None, iw_or_w='iw', with_Sigma=True, with_dc=True, broadening=None,
transform_to_solver_blocks=True, show_warnings=True): transform_to_solver_blocks=True):
r""" r"""
Extracts the local downfolded Green function by the Brillouin-zone integration of the lattice Green's function. Extracts the local downfolded Green function by the Brillouin-zone integration of the lattice Green's function.
@ -686,9 +686,6 @@ class SumkDFT(object):
transform_to_solver_blocks : bool, optional transform_to_solver_blocks : bool, optional
If True (default), the returned G_loc will be transformed to the block structure ``gf_struct_solver``, If True (default), the returned G_loc will be transformed to the block structure ``gf_struct_solver``,
else it will be in ``gf_struct_sumk``. else it will be in ``gf_struct_sumk``.
show_warnings : bool, optional
Displays warning messages during transformation
(Only effective if transform_to_solver_blocks = True
Returns Returns
------- -------
@ -756,11 +753,11 @@ class SumkDFT(object):
icrsh, gf, direction='toLocal') icrsh, gf, direction='toLocal')
if transform_to_solver_blocks: if transform_to_solver_blocks:
return self.transform_to_solver_blocks(G_loc, show_warnings=show_warnings) return self.transform_to_solver_blocks(G_loc)
return G_loc return G_loc
def transform_to_solver_blocks(self, G_loc, G_out=None, show_warnings = True): def transform_to_solver_blocks(self, G_loc, G_out=None):
""" transform G_loc from sumk to solver space """ transform G_loc from sumk to solver space
Parameters Parameters
@ -797,8 +794,7 @@ class SumkDFT(object):
ish_from=self.inequiv_to_corr[ish], ish_from=self.inequiv_to_corr[ish],
ish_to=ish, ish_to=ish,
space_from='sumk', space_from='sumk',
G_out=G_out[ish], G_out=G_out[ish])
show_warnings = show_warnings)
# return only the inequivalent shells: # return only the inequivalent shells:
return G_out return G_out