Skip to content

Commit

Permalink
Fix the basis when reading from XV
Browse files Browse the repository at this point in the history
  • Loading branch information
pfebrer committed May 28, 2024
1 parent 087767d commit fdc8823
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sisl/io/siesta/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ def _replace_with_species(basis, ref_basis):
"""
with warnings.catch_warnings():
warnings.simplefilter("ignore")
for atom, _ in basis.iter(True):
basis.replace(atom, ref_basis[atom.Z - 1])
basis.reduce(inplace=True)
for at in basis.atom:
basis.replace_atom(at, ref_basis.atom[at.Z - 1])


def _fc_correct(fc, trans_inv=True, sum0=True, hermitian=True):
Expand Down

0 comments on commit fdc8823

Please sign in to comment.