-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
44a6220
commit aaec125
Showing
11 changed files
with
93 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import pytest | ||
from pymatgen.analysis.defects.plotting.thermo import plot_formation_energy_diagrams, plot_chempot_2d | ||
from pymatgen.analysis.defects.plotting.thermo import ( | ||
plot_chempot_2d, | ||
plot_formation_energy_diagrams, | ||
) | ||
from pymatgen.core import Element | ||
|
||
def test_fed_plot(basic_fed): | ||
fig = plot_formation_energy_diagrams([basic_fed]) | ||
assert {d_.name for d_ in fig.data} == {'Mg_Ga', 'Mg_Ga:slope'} | ||
|
||
def test_chempot_plot(basic_fed): | ||
plot_chempot_2d(basic_fed, x_element=Element("Mg"), y_element=Element("Ga")) | ||
|
||
def test_fed_plot(basic_fed) -> None: | ||
fig = plot_formation_energy_diagrams([basic_fed]) | ||
assert {d_.name for d_ in fig.data} == {"Mg_Ga", "Mg_Ga:slope"} | ||
|
||
|
||
def test_chempot_plot(basic_fed) -> None: | ||
plot_chempot_2d(basic_fed, x_element=Element("Mg"), y_element=Element("Ga")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.