Skip to content

Commit

Permalink
chore: fix plot
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed May 31, 2024
1 parent 2cfaee5 commit b13ff7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def plot_strain_vs_atoms(interfaces: List[Material], settings: Dict[str, Union[s
data = []
for index, interface in enumerate(interfaces):
strain_percentage = interface.metadata[StrainModes.mean_abs_strain] * 100
num_sites = len(interface.basis.values())
print(interface.basis["coordinates"])
num_sites = len(interface.basis["coordinates"])

hover_text = f"Index: {index}<br>Strain: {strain_percentage:.2f}%<br>Atoms: {num_sites}"

Expand Down

0 comments on commit b13ff7d

Please sign in to comment.