From 381e74c149f8c8f2eabb82b012c1cca4e1de78fe Mon Sep 17 00:00:00 2001 From: Andrey Rybakov Date: Thu, 23 Nov 2023 17:34:41 +0100 Subject: [PATCH] Fix issue#11 --- docs/source/release-notes/0.8.rst | 5 +++++ radtools/__init__.py | 6 +++--- radtools/io/vampire.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/source/release-notes/0.8.rst b/docs/source/release-notes/0.8.rst index f3f52857..e754710e 100644 --- a/docs/source/release-notes/0.8.rst +++ b/docs/source/release-notes/0.8.rst @@ -145,3 +145,8 @@ Change default colors for the magnon dispersion plots. Minor improvements. Add parameters to the :py:meth:`.MagnonDispersion.omega`. Move from `setup.py`` to ``pyproject.toml``. + +0.8.11 +------ + +Bugfix in :py:func:`.dump_ucf`. - number of materials was not written. It is working properly now. diff --git a/radtools/__init__.py b/radtools/__init__.py index 50cebaa0..5ed40668 100644 --- a/radtools/__init__.py +++ b/radtools/__init__.py @@ -21,10 +21,10 @@ """ -__version__ = "0.8.10" +__version__ = "0.8.11" __doclink__ = "rad-tools.org" -__git_hash__ = "41ab03fcbc646844764abf3583eaee1452325eae" -__release_date__ = "4 November 2023" +__git_hash__ = "b062d88d62d5d7f1c87706d712d36bd466768318" +__release_date__ = "23 November 2023" from . import ( diff --git a/radtools/io/vampire.py b/radtools/io/vampire.py index ab5738b8..69ccd326 100644 --- a/radtools/io/vampire.py +++ b/radtools/io/vampire.py @@ -224,7 +224,7 @@ def dump_ucf( + "\n" ) result.append("# Atoms\n") - result.append(f"{len(spinham.magnetic_atoms)} 1\n") + result.append(f"{len(spinham.magnetic_atoms)} {len(np.unique(materials))}\n") atom_indices = {} for a_i, atom in enumerate(spinham.magnetic_atoms): result.append(