forked from materialsproject/pymatgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
formal_chempots
option to ChemicalPotentialDiagram
to plot th…
…e formal chemical potentials rather than the DFT energies (materialsproject#2916) * Add `formal_chempots` option to `ChemicalPotentialDiagram` to plot the formal chemical potentials rather than the DFT energies * Add tests for `formal_chempots` option in `ChemicalPotentialDiagram` to all applicable tests in `test_chempot_diagram.py` * remove useless dict.copy() in _renormalize_entry(), fix some doc strings and typos * replace assertArrayAlmostEqual() with pytest.approx() in test_chempot_diagram.py * use dot access for plot attributes --------- Co-authored-by: Janosh Riebesell <[email protected]>
- Loading branch information
Showing
2 changed files
with
184 additions
and
26 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