Skip to content

Commit

Permalink
remove is_siesta
Browse files Browse the repository at this point in the history
  • Loading branch information
mailhexu committed Apr 27, 2024
1 parent c339bcb commit bfcf4e0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions TB2J/abacus/abacus_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class AbacusWrapper(AbstractTB):
def __init__(self, HR, SR, Rlist, nbasis, nspin=1):
self.R2kfactor = -2j * np.pi
self.is_orthogonal = False
self.is_siesta = False
self._name = "Abacus"
self._name = "ABACUS"
self.HR = HR
self.SR = SR
self.Rlist = Rlist
Expand Down
4 changes: 2 additions & 2 deletions TB2J/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def simplify_orbital_contributions(self, Jorbij, iatom, jatom):
"""
sum up the contribution of all the orbitals with same (n,l,m)
"""
if self.backend_name == "SIESTA":
if self.backend_name.upper() == "SIESTA":
mmat_i = self.mmats[iatom]
mmat_j = self.mmats[jatom]
Jorbij = mmat_i.T @ Jorbij @ mmat_j
Expand Down Expand Up @@ -333,7 +333,7 @@ def set_tbmodels(self, tbmodels):
The basis should be orb1_up, orb2_up,...orbn_up, orb1_dn, orb2_dn....
"""
self.tbmodel = tbmodels
self.backend_name = self.tbmodel.name
self.backend_name.upper() = self.tbmodel.name
# TODO: check if tbmodels are really a tbmodel with SOC.
self.G = TBGreen(
self.tbmodel,
Expand Down
2 changes: 0 additions & 2 deletions TB2J/myTB.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class AbstractTB:
def __init__(self, R2kfactor, nspin, norb):
#: :math:`\alpha` used in :math:`H(k)=\sum_R H(R) \exp( \alpha k \cdot R)`,
#: Should be :math:`2\pi i` or :math:`-2\pi i`
self.is_siesta = False
self.is_orthogonal = True
self.R2kfactor = R2kfactor

Expand Down Expand Up @@ -125,7 +124,6 @@ def __init__(
self.atoms = None
self.R2kfactor = 2.0j * np.pi
self.k2Rfactor = -2.0j * np.pi
self.is_siesta = False
self.is_orthogonal = True
self._name = "Wannier"

Expand Down
1 change: 0 additions & 1 deletion TB2J/sisl_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

class SislWrapper(AbstractTB):
def __init__(self, sisl_hamiltonian, geom=None, spin=None):
self.is_siesta = False
self.is_orthogonal = False
self.ham = sisl_hamiltonian
# k2Rfactor : H(k) = \int_R H(R) * e^(k2Rfactor * k.R)
Expand Down

0 comments on commit bfcf4e0

Please sign in to comment.