Skip to content

Commit 1bac062

Browse files
committed
Fix a bug in dump_poscar
1 parent f880c73 commit 1bac062

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

docs/source/release-notes/0.6.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44
Version 0.6
55
***********
66

7+
0.6.4
8+
=====
9+
10+
**Date**: 2 October 2025
11+
12+
Bugfix
13+
------
14+
15+
* Fix bug in ``wulfric.io.dump_poscar``: only three atom positions were outputted. Now all
16+
positions are written.
17+
718
0.6.3
819
=====
920

src/wulfric/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
#
2020
# ================================ END LICENSE =================================
21-
__version__ = "0.6.3"
21+
__version__ = "0.6.4"
2222
__doclink__ = "wulfric.org"
23-
__release_date__ = "20 September 2025"
23+
__release_date__ = "2 October 2025"
2424

2525

2626
from . import cell, constants, crystal, geometry, io, kpoints

src/wulfric/io/_vasp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,10 @@ def dump_poscar(
282282

283283
file_object.write(mode + "\n")
284284

285-
for atom_index in range(3):
285+
for coordinate in atom_coordinates:
286286
for component_index in range(3):
287287
file_object.write(
288-
f"{atom_coordinates[atom_index][component_index]:{decimals + 5}.{decimals}f} "
288+
f"{coordinate[component_index]:{decimals + 5}.{decimals}f} "
289289
)
290290
file_object.write("\n")
291291

0 commit comments

Comments
 (0)