mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 04:13:47 +01:00
Replaced "== None" with "is None" for other py files
This commit is contained in:
parent
56982abf2b
commit
f36e6277d5
@ -250,7 +250,7 @@ class SumkLDA:
|
|||||||
|
|
||||||
# Do we need to set up G_upfold?
|
# Do we need to set up G_upfold?
|
||||||
set_up_G_upfold = False # assume not
|
set_up_G_upfold = False # assume not
|
||||||
if self.G_upfold == None: # yes if not G_upfold provided
|
if self.G_upfold is None: # yes if not G_upfold provided
|
||||||
set_up_G_upfold = True
|
set_up_G_upfold = True
|
||||||
else: # yes if inconsistencies present in existing G_upfold
|
else: # yes if inconsistencies present in existing G_upfold
|
||||||
GFsize = [ gf.N1 for sig,gf in self.G_upfold]
|
GFsize = [ gf.N1 for sig,gf in self.G_upfold]
|
||||||
@ -403,7 +403,7 @@ class SumkLDA:
|
|||||||
def analyse_BS(self, threshold = 0.00001, include_shells = None, dm = None):
|
def analyse_BS(self, threshold = 0.00001, include_shells = None, dm = None):
|
||||||
""" Determines the Green function block structure from simple point integration."""
|
""" Determines the Green function block structure from simple point integration."""
|
||||||
|
|
||||||
if (dm==None): dm = self.simple_point_dens_mat()
|
if dm is None: dm = self.simple_point_dens_mat()
|
||||||
|
|
||||||
dens_mat = [dm[self.invshellmap[ish]] for ish in xrange(self.n_inequiv_corr_shells) ]
|
dens_mat = [dm[self.invshellmap[ish]] for ish in xrange(self.n_inequiv_corr_shells) ]
|
||||||
|
|
||||||
|
@ -14,9 +14,9 @@ class TransBasis:
|
|||||||
def __init__(self, SK=None, hdf_datafile=None):
|
def __init__(self, SK=None, hdf_datafile=None):
|
||||||
'''Inits the class by reading the input.'''
|
'''Inits the class by reading the input.'''
|
||||||
|
|
||||||
if (SK==None):
|
if SK is None:
|
||||||
# build our own SK instance
|
# build our own SK instance
|
||||||
if (hdf_datafile==None):
|
if hdf_datafile is None:
|
||||||
mpi.report("Give SK instance or HDF filename!")
|
mpi.report("Give SK instance or HDF filename!")
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user