Skip to content

Commit 3fd34ee

Browse files
authored
Easier conversion of lattice numpy array to list
1 parent 21d32b2 commit 3fd34ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crystal_toolkit/renderables/structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def get_structure_scene(
101101

102102
primitives["unit_cell"].append(self.lattice.get_scene())
103103

104-
lattice_vectors = [list(array) for array in self.lattice.matrix]
104+
lattice_vectors = self.lattice.matrix.tolist()
105105

106106
return Scene(
107107
name="Structure",

0 commit comments

Comments
 (0)