Skip to content

Commit

Permalink
Remove multiplicity determination in Distortions file writing as no…
Browse files Browse the repository at this point in the history
… longer used (previously for naming), and just slows down generation
  • Loading branch information
kavanase committed Feb 4, 2024
1 parent 9abc6aa commit 06abea6
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions shakenbreak/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -2243,24 +2243,12 @@ def _setup_distorted_defect_dict(
)
pristine_site = _get_bulk_defect_site(defect_entry)

try:
distorted_defect_dict = {
"defect_type": defect_type,
"defect_site": defect_site,
"defect_supercell_site": pristine_site, # original site in pristine supercell
"defect_multiplicity": defect.get_multiplicity(),
"charges": {int(charge): {} for charge in user_charges},
} # General info about (neutral) defect
except NotImplementedError: # interstitial
distorted_defect_dict = {
"defect_type": defect_type,
"defect_site": defect_site,
"defect_supercell_site": pristine_site,
"defect_multiplicity": _get_voronoi_multiplicity(
defect.site, defect.structure
),
"charges": {int(charge): {} for charge in user_charges},
} # General info about (neutral) defect
distorted_defect_dict = {
"defect_type": defect_type,
"defect_site": defect_site,
"defect_supercell_site": pristine_site, # original site in pristine supercell
"charges": {int(charge): {} for charge in user_charges},
} # General info about (neutral) defect
if defect_type == "substitution": # substitutions and antisites
sub_site_in_bulk = defect.defect_site
distorted_defect_dict[
Expand Down

0 comments on commit 06abea6

Please sign in to comment.