Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippRue committed Dec 5, 2023
1 parent aa8b5c1 commit 97a9942
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions aiida_kkr/workflows/bs.py
Expand Up @@ -20,7 +20,7 @@
__copyright__ = (u'Copyright (c), 2020, Forschungszentrum Jülich GmbH, '
'IAS-1/PGI-1, Germany. All rights reserved.')
__license__ = 'MIT license, see LICENSE.txt file'
__version__ = '0.1.7'
__version__ = '0.1.8'
__contributors__ = (u'Rubel Mozumder', u'Philipp Rüßmann')


Expand Down Expand Up @@ -292,10 +292,16 @@ def validate_input(self):
saux = StructureData(cell=cell)
for isite, site in enumerate(struc_kkr.sites):
kind = struc_kkr.get_kind(site.kind_name)
symbols = kind.symbols
weights = kind.weights
# replace old way of empty site with new 'X' kind
if site.kind_name == 'HX' and kind.weights[0] < 1e-8:
symbols = 'X'
weights = 1.0
saux.append_atom(
name='atom' + str(isite) + ':' + site.kind_name,
symbols=kind.symbols,
weights=kind.weights,
symbols=symbols,
weights=weights,
position=site.position
)
# use auxiliary structure inside k-point generator
Expand Down

0 comments on commit 97a9942

Please sign in to comment.