-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make pourbaix compatible w/ latest pmg
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,19 @@ | |
from dash.dependencies import Component, Input, Output, State | ||
from dash.exceptions import PreventUpdate | ||
from frozendict import frozendict | ||
from pymatgen.analysis.pourbaix_diagram import ELEMENTS_HO, PREFAC, PourbaixDiagram | ||
from pymatgen.core import Composition | ||
from pymatgen.analysis.pourbaix_diagram import PREFAC, PourbaixDiagram | ||
from pymatgen.core import Composition, Element | ||
from pymatgen.util.string import unicodeify | ||
from shapely.geometry import Polygon | ||
|
||
import crystal_toolkit.helpers.layouts as ctl | ||
from crystal_toolkit.core.mpcomponent import MPComponent | ||
|
||
try: | ||
from pymatgen.analysis.pourbaix_diagram import ELEMENTS_HO | ||
except ImportError: | ||
ELEMENTS_HO = {Element("H"), Element("O")} | ||
|
||
__author__ = "Joseph Montoya" | ||
__email__ = "[email protected]" | ||
|
||
|