Skip to content

Commit fbbde31

Browse files
authored
Update phono.py
1 parent 54ceee3 commit fbbde31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynep/phono.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_supercell_matrix(self, atoms):
116116
if isinstance(self.dim, str):
117117
if self.dim == 'Auto':
118118
lengths = atoms.cell.lengths()
119-
return np.round(10 / lengths).astype('int')
119+
return np.round(10 / lengths).astype('int').clip(1)
120120
else:
121121
return self.dim
122122

0 commit comments

Comments
 (0)