Skip to content

Commit 1f7f6e6

Browse files
committed
Minor tests updates
1 parent 44de893 commit 1f7f6e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doped/generation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@ def __init__(
15741574
)
15751575

15761576
# Antisites:
1577-
if self.kwargs.get("substitution_elements", True) == []: # skip substitutions
1577+
if self.kwargs.get("substitution_elements", False) == []: # skip substitutions
15781578
pbar.update(10) # 30% of progress bar
15791579
else:
15801580
pbar.set_description("Generating substitutions")
@@ -1615,7 +1615,7 @@ def __init__(
16151615
else:
16161616
self.defects["substitutions"] = sub_defects
16171617

1618-
if sub_elts := self.kwargs.get("substitution_elements"):
1618+
if sub_elts := self.kwargs.get("substitution_elements", False):
16191619
# filter out substitutions for elements not in ``substitution_elements``:
16201620
self.defects["substitutions"] = [
16211621
sub

tests/test_generation.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -741,19 +741,19 @@ def setUp(self):
741741
Si_i_C1_Te2.44 [+4,+3,+2,+1,0] [0.001,0.336,0.289] 18f
742742
Si_i_C3_Si2.64 [+4,+3,+2,+1,0] [0.000,0.000,0.318] 6c
743743
Si_i_C3_Te2.41 [+4,+3,+2,+1,0] [0.000,0.000,0.050] 6c
744-
Si_i_C3i_Te2.81 [+4,+3,+2,+1,0] [0.000,0.000,0.000] 3a
744+
Si_i_C3i [+4,+3,+2,+1,0] [0.000,0.000,0.000] 3a
745745
Sb_i_C1_Sb2.48 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.347,0.348,0.457] 18f
746746
Sb_i_C1_Si2.21 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.158,0.359,0.167] 18f
747747
Sb_i_C1_Te2.44 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.001,0.336,0.289] 18f
748748
Sb_i_C3_Si2.64 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.000,0.000,0.318] 6c
749749
Sb_i_C3_Te2.41 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.000,0.000,0.050] 6c
750-
Sb_i_C3i_Te2.81 [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.000,0.000,0.000] 3a
750+
Sb_i_C3i [+5,+4,+3,+2,+1,0,-1,-2,-3] [0.000,0.000,0.000] 3a
751751
Te_i_C1_Sb2.48 [+4,+3,+2,+1,0,-1,-2] [0.347,0.348,0.457] 18f
752752
Te_i_C1_Si2.21 [+4,+3,+2,+1,0,-1,-2] [0.158,0.359,0.167] 18f
753753
Te_i_C1_Te2.44 [+4,+3,+2,+1,0,-1,-2] [0.001,0.336,0.289] 18f
754754
Te_i_C3_Si2.64 [+4,+3,+2,+1,0,-1,-2] [0.000,0.000,0.318] 6c
755755
Te_i_C3_Te2.41 [+4,+3,+2,+1,0,-1,-2] [0.000,0.000,0.050] 6c
756-
Te_i_C3i_Te2.81 [+4,+3,+2,+1,0,-1,-2] [0.000,0.000,0.000] 3a
756+
Te_i_C3i [+4,+3,+2,+1,0,-1,-2] [0.000,0.000,0.000] 3a
757757
\n"""
758758
"The number in the Wyckoff label is the site multiplicity/degeneracy of that defect "
759759
"in the conventional ('conv.') unit cell, which comprises 6 formula unit(s) of "

0 commit comments

Comments
 (0)