Skip to content

Commit

Permalink
Minor tests updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Nov 30, 2024
1 parent 44de893 commit 1f7f6e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doped/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,7 @@ def __init__(
)

# Antisites:
if self.kwargs.get("substitution_elements", True) == []: # skip substitutions
if self.kwargs.get("substitution_elements", False) == []: # skip substitutions
pbar.update(10) # 30% of progress bar
else:
pbar.set_description("Generating substitutions")
Expand Down Expand Up @@ -1615,7 +1615,7 @@ def __init__(
else:
self.defects["substitutions"] = sub_defects

if sub_elts := self.kwargs.get("substitution_elements"):
if sub_elts := self.kwargs.get("substitution_elements", False):
# filter out substitutions for elements not in ``substitution_elements``:
self.defects["substitutions"] = [
sub
Expand Down
6 changes: 3 additions & 3 deletions tests/test_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,19 +741,19 @@ def setUp(self):
Si_i_C1_Te2.44 [+4,+3,+2,+1,0] [0.001,0.336,0.289] 18f
Si_i_C3_Si2.64 [+4,+3,+2,+1,0] [0.000,0.000,0.318] 6c
Si_i_C3_Te2.41 [+4,+3,+2,+1,0] [0.000,0.000,0.050] 6c
Si_i_C3i_Te2.81 [+4,+3,+2,+1,0] [0.000,0.000,0.000] 3a
Si_i_C3i [+4,+3,+2,+1,0] [0.000,0.000,0.000] 3a
Sb_i_C1_Sb2.48 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.347,0.348,0.457] 18f
Sb_i_C1_Si2.21 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.158,0.359,0.167] 18f
Sb_i_C1_Te2.44 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.001,0.336,0.289] 18f
Sb_i_C3_Si2.64 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.000,0.000,0.318] 6c
Sb_i_C3_Te2.41 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.000,0.000,0.050] 6c
Sb_i_C3i_Te2.81 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.000,0.000,0.000] 3a
Sb_i_C3i [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.000,0.000,0.000] 3a
Te_i_C1_Sb2.48 [+4,+3,+2,+1,0,-1,-2] [0.347,0.348,0.457] 18f
Te_i_C1_Si2.21 [+4,+3,+2,+1,0,-1,-2] [0.158,0.359,0.167] 18f
Te_i_C1_Te2.44 [+4,+3,+2,+1,0,-1,-2] [0.001,0.336,0.289] 18f
Te_i_C3_Si2.64 [+4,+3,+2,+1,0,-1,-2] [0.000,0.000,0.318] 6c
Te_i_C3_Te2.41 [+4,+3,+2,+1,0,-1,-2] [0.000,0.000,0.050] 6c
Te_i_C3i_Te2.81 [+4,+3,+2,+1,0,-1,-2] [0.000,0.000,0.000] 3a
Te_i_C3i [+4,+3,+2,+1,0,-1,-2] [0.000,0.000,0.000] 3a
\n"""
"The number in the Wyckoff label is the site multiplicity/degeneracy of that defect "
"in the conventional ('conv.') unit cell, which comprises 6 formula unit(s) of "
Expand Down

0 comments on commit 1f7f6e6

Please sign in to comment.