Skip to content

Commit

Permalink
fix magnetic moment y=0 bug introduced in 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mailhexu committed May 26, 2024
1 parent 21acf3f commit 13337e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion TB2J/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.9.0"
__version__ = "0.9.0.1"
2 changes: 1 addition & 1 deletion TB2J/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def set_tbmodels(self, tbmodels):
self.norb = self.G.norb
self.nbasis = self.G.nbasis
# self.rho = np.zeros((self.nbasis, self.nbasis), dtype=complex)
self.rho = self.G.get_density_matrix().real
self.rho = self.G.get_density_matrix()
self.A_ijR_list = defaultdict(lambda: [])
self.A_ijR = defaultdict(lambda: np.zeros((4, 4), dtype=complex))
self.A_ijR_orb = dict()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
from setuptools import setup, find_packages

__version__ = "0.9.0"
__version__ = "0.9.0.1"

long_description = """TB2J is a Python package aimed to compute automatically the magnetic interactions (superexchange and Dzyaloshinskii-Moriya) between atoms of magnetic crystals from DFT Hamiltonian based on Wannier functions or Linear combination of atomic orbitals. It uses the Green's function method and take the local rigid spin rotation as a perturbation. The package can take the output from Wannier90, which is interfaced with many density functional theory codes or from codes based on localised orbitals. A minimal user input is needed, which allows for an easily integration into a high-throughput workflows. """

Expand Down
4 changes: 2 additions & 2 deletions upload_to_pip.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
rm ./dist/*
python3 setup.py sdist bdist_wheel
python3 -m twine upload --repository pypi dist/* --verbose
python3.11 setup.py sdist bdist_wheel
python3.11 -m twine upload --repository pypi dist/* --verbose

0 comments on commit 13337e3

Please sign in to comment.