Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions crystal_toolkit/components/phonon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,14 +1100,13 @@ def update_crystal_animation(
num_sites = struct.num_sites

# update structure if the controls got triggered
if sueprcell_update:
total_repeat_cell_cnt = scale_x * scale_y * scale_z
total_repeat_cell_cnt = scale_x * scale_y * scale_z

# create supercell
trans = SupercellTransformation(
((scale_x, 0, 0), (0, scale_y, 0), (0, 0, scale_z))
)
struct = trans.apply_transformation(struct)
# create supercell
trans = SupercellTransformation(
((scale_x, 0, 0), (0, scale_y, 0), (0, 0, scale_z))
)
struct = trans.apply_transformation(struct)

struc_graph = StructureGraph.from_local_env_strategy(struct, CrystalNN())

Expand Down
Loading