Version 0.4#
0.4.3#
Date: 9 January 2026
Improvements#
Make LSWT diagonalization more numerically stable. This should fix rare cases of non-continues magnon spectra.
Improve speed of the LSWT diagonalization (up to the factor x2).
0.4.2#
Date: 21 November 2025
Bugfix#
Fix a rare bug with p21 parameter in the dispersion calculation.
Fix issue #79: Incorrect sorting of the eigenvectors in edge cases, introduced in 0.2.
Improvements#
Improve text of warnings of the magnopy-lswt script.
0.4.1#
Warning
We recommend not to use this version of Magnopy due to issue #79, that can affect some (not all) calculations of spin wave spectra. Use 0.4.2 and later instead.
Date: 3 November 2025
Bugfix#
Fix issue #80: a bug in magnopy-lswt when using
--k-pointsargument.
0.4.0#
Date: 23 October 2025
Warning
We do not recommend to use magnopy-lswt script with --k-points argument
of this version. There is a bug that was fixed in 0.4.1.
New features#
Together with this release we release a master tutorial about Magnopy: Tutorials.
Add summary of the executed commands to the output of both magnopy-lswt and magnopy-optimize-sd.
Add output of magnetic field to magnopy-optimize-sd.
Add "E_0.txt" output file to magnopy-optimize-sd.
Add "E_0.txt", "E_2.txt" and "ONE_OPERATOR_TERMS.txt" output file to magnopy-optimize-sd.
Add parameter
BinSpinHamiltonian.add_magnetic_field().Implement issue #72:
.Convention.__str__()and.Convention.__repr__().Implement
.Convention.__hash__().Implement
when_presentargument inSpinHamiltonian.add_1(),SpinHamiltonian.add_21(),SpinHamiltonian.add_22(),SpinHamiltonian.add_31(),SpinHamiltonian.add_32(),SpinHamiltonian.add_33(),SpinHamiltonian.add_41(),SpinHamiltonian.add_421(),SpinHamiltonian.add_422(),SpinHamiltonian.add_43(),SpinHamiltonian.add_44().Implement
spin_valuesinio.load_grogu(), same as inio.load_tb2j().Implement issue #75:
--spglib-typesin magnopy-lswt.Implement
io.plot_dispersion().Support
--spin-valuesfor the GROGU as well in magnopy-optimize-sd and magnopy-lswt.
Bugfix#
Fix issue #74: a bug in magnopy-lswt, when it is used with
--k-pointsargument.Fix a bug in
examples.ivuzjo().
Improvements#
Overall improvement of the console output for both magnopy-lswt and magnopy-optimize-sd.
Extend hover information in
experimental.plot_spinham().
Breaking changes wrt 0.3#
Deprecated features#
Convention.summary()useprint(convention)orstr(convention)instead.replaceargument inSpinHamiltonian.add_1(),SpinHamiltonian.add_21(),SpinHamiltonian.add_22(),SpinHamiltonian.add_31(),SpinHamiltonian.add_32(),SpinHamiltonian.add_33(),SpinHamiltonian.add_41(),SpinHamiltonian.add_421(),SpinHamiltonian.add_422(),SpinHamiltonian.add_43(),SpinHamiltonian.add_44(). Usewhen_present="replace"instead.hinSpinHamiltonian.add_magnetic_field()in favor ofB.experimental.plot_dispersion()useio.plot_dispersion()instead.