Skip to content

Commit de2f298

Browse files
committed
Fix format bug in getting poscar content.
1 parent 9a92d01 commit de2f298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vaspy/atomco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def get_poscar_content(self, **kwargs):
154154
tf = kwargs.get("tf", default_tf)
155155
data_tf = ''
156156
for data, tf in zip(self.data.tolist(), tf.tolist()):
157-
data_tf += ("{:18.12f}"*3+"{:5s}"*3+"\n").format(*(data+tf))
157+
data_tf += ("{:18.12f}"*3 + " " + "{:5s}"*3 + "\n").format(*(data+tf))
158158

159159
# merge all strings
160160
content += (bases_const + bases + atom_types + atom_numbers +

0 commit comments

Comments
 (0)