Skip to content

Commit

Permalink
Merge pull request #613 from kenjiyokoe1104/bugfix
Browse files Browse the repository at this point in the history
fig bug in phase diagram
  • Loading branch information
JosephMontoya-TRI authored Nov 13, 2023
2 parents 02327d0 + 290856e commit 23128c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions camd/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def plot_hull(self, df, new_result_ids, filename=None, finalize=False):

# Filter for nans by checking if it's a computed entry
pg_elements = sorted(total_comp.keys())
pd = PhaseDiagram(entries, elements=pg_elements)
pd = PhaseDiagram(entries.tolist(), elements=pg_elements)
plotkwargs = {
"markerfacecolor": "white",
"markersize": 7,
Expand All @@ -555,7 +555,7 @@ def plot_hull(self, df, new_result_ids, filename=None, finalize=False):
if finalize:
# If finalize, we'll reset pd to all entries at this point to
# measure stabilities wrt. the ultimate hull.
pd = PhaseDiagram(filtered["entry"].values, elements=pg_elements)
pd = PhaseDiagram(filtered["entry"].tolist(), elements=pg_elements)
plotter = PDPlotter(
pd,
backend="matplotlib",
Expand Down

0 comments on commit 23128c5

Please sign in to comment.