Skip to content

Commit

Permalink
Update corrections tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Aug 23, 2023
1 parent b5c9bc2 commit 88b76d7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/test_corrections.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def setUp(self):
for lattval in abc
]
# load necessary parameters for defect_entry to make use of Freysoldt and Kumagai corrections
p = {
metadata = {
"axis_grid": axisdata,
"bulk_planar_averages": bldata,
"defect_planar_averages": dldata,
Expand Down Expand Up @@ -131,11 +131,13 @@ def setUp(self):

site_matching_indices = [[ind, ind - 1] for ind in range(len(struct.sites)) if ind != 0]

p = {
"bulk_atomic_site_averages": bulk_atomic_site_averages,
"defect_atomic_site_averages": defect_atomic_site_averages,
"site_matching_indices": site_matching_indices,
}
metadata.update(
{
"bulk_atomic_site_averages": bulk_atomic_site_averages,
"defect_atomic_site_averages": defect_atomic_site_averages,
"site_matching_indices": site_matching_indices,
}
)
self.defect_entry = DefectEntry(
vac,
charge_state=-3,
Expand All @@ -144,7 +146,7 @@ def setUp(self):
energy=0.0, # needs to be set, so set to 0.0
),
sc_defect_frac_coords=struct.sites[0].frac_coords,
calculation_metadata=p,
calculation_metadata=metadata,
)

def test_get_correction_freysoldt(self):
Expand Down

0 comments on commit 88b76d7

Please sign in to comment.