Skip to content

Commit

Permalink
use get_cell
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed May 20, 2024
1 parent 99a28ac commit e21bb2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion structuretoolkit/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from typing import Optional
from scipy.interpolate import interp1d

from structuretoolkit.common.helper import get_cell

__author__ = "Joerg Neugebauer, Sudarsan Surendralal"
__copyright__ = (
"Copyright 2021, Max-Planck-Institut für Eisenforschung GmbH - "
Expand Down Expand Up @@ -166,7 +168,7 @@ def _get_box_skeleton(cell: np.ndarray):


def _draw_box_plotly(fig, structure, px, go):
cell = structure.cell
cell = get_cell(structure)
data = fig.data
for lines in _get_box_skeleton(cell):
fig = px.line_3d(**{xx: vv for xx, vv in zip(["x", "y", "z"], lines.T)})
Expand Down

0 comments on commit e21bb2f

Please sign in to comment.