Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 25, 2024
1 parent a6db836 commit 1c17251
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crystal_toolkit/components/pourbaix.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def get_text_size(available_vertical_space):
)

# Generate hoverinfo
hoverlabel = []
hoverlabel = []
for ph_val, v_val, de_val in zip(
ph_mesh.ravel(), v_mesh.ravel(), decomposition_e.ravel()
):
Expand All @@ -463,7 +463,7 @@ def get_text_size(available_vertical_space):
f"ph={ph_val:.2f}",
f"V={v_val:.2f}",
]
hovertext = "<br>".join(hovertext)
hovertext = "<br>".join(hovertext)
hoverlabel.append(hovertext)
hoverlabel = np.reshape(hoverlabel, list(decomposition_e.shape))

Expand Down Expand Up @@ -492,7 +492,7 @@ def get_text_size(available_vertical_space):
line_width=0,
# contours_coloring="heatmap",
text=hoverlabel,
hoverinfo = "text",
hoverinfo="text",
name=f"{heatmap_formula} ({heatmap_entry.entry_id}) Heatmap",
showlegend=True,
)
Expand Down

0 comments on commit 1c17251

Please sign in to comment.