TB2J 0.8.2.3__tar.gz → 0.8.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/PKG-INFO +1 -1
  2. TB2J-0.8.2.4/TB2J/__init__.py +1 -0
  3. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/io_exchange/io_exchange.py +0 -2
  4. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/manager.py +2 -3
  5. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/sisl_wrapper.py +5 -3
  6. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J.egg-info/PKG-INFO +1 -1
  7. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/setup.py +1 -1
  8. TB2J-0.8.2.3/TB2J/__init__.py +0 -1
  9. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/LICENSE +0 -0
  10. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/README.md +0 -0
  11. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/Jdownfolder.py +0 -0
  12. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/Jtensor.py +0 -0
  13. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/Oiju.py +0 -0
  14. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/Oiju_epc.py +0 -0
  15. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/abacus/__init__.py +0 -0
  16. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/abacus/abacus_api.py +0 -0
  17. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/abacus/abacus_wrapper.py +0 -0
  18. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/abacus/gen_exchange_abacus.py +0 -0
  19. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/abacus/orbital_api.py +0 -0
  20. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/abacus/stru_api.py +0 -0
  21. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/abacus/test_read_HRSR.py +0 -0
  22. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/abacus/test_read_stru.py +0 -0
  23. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/basis.py +0 -0
  24. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/citation.py +0 -0
  25. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/contour.py +0 -0
  26. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/density_matrix.py +0 -0
  27. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/epc.py +0 -0
  28. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/exchange.py +0 -0
  29. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/exchangeCL2.py +0 -0
  30. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/exchange_pert.py +0 -0
  31. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/exchange_qspace.py +0 -0
  32. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/external/__init__.py +0 -0
  33. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/external/p_tqdm.py +0 -0
  34. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/gpaw_wrapper.py +0 -0
  35. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/green.py +0 -0
  36. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/greentest.py +0 -0
  37. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/io_exchange/__init__.py +0 -0
  38. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/io_exchange/io_multibinit.py +0 -0
  39. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/io_exchange/io_tomsasd.py +0 -0
  40. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/io_exchange/io_txt.py +0 -0
  41. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/io_exchange/io_uppasd.py +0 -0
  42. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/io_exchange/io_vampire.py +0 -0
  43. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/io_merge.py +0 -0
  44. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/kpoints.py +0 -0
  45. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/mathutils.py +0 -0
  46. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/myTB.py +0 -0
  47. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/orbmap.py +0 -0
  48. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/pauli.py +0 -0
  49. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/pert.py +0 -0
  50. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/plot.py +0 -0
  51. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/rotate_atoms.py +0 -0
  52. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/spinham/__init__.py +0 -0
  53. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/spinham/base_parser.py +0 -0
  54. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/spinham/constants.py +0 -0
  55. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/spinham/hamiltonian.py +0 -0
  56. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/spinham/hamiltonian_terms.py +0 -0
  57. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/spinham/plot.py +0 -0
  58. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/spinham/qsolver.py +0 -0
  59. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/spinham/spin_api.py +0 -0
  60. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/spinham/spin_xml.py +0 -0
  61. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/spinham/supercell.py +0 -0
  62. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/tensor_rotate.py +0 -0
  63. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/utest.py +0 -0
  64. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/utils.py +0 -0
  65. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/versioninfo.py +0 -0
  66. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/wannier/__init__.py +0 -0
  67. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/wannier/w90_parser.py +0 -0
  68. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J/wannier/w90_tb_parser.py +0 -0
  69. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J.egg-info/SOURCES.txt +0 -0
  70. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J.egg-info/dependency_links.txt +0 -0
  71. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J.egg-info/requires.txt +0 -0
  72. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/TB2J.egg-info/top_level.txt +0 -0
  73. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/scripts/TB2J_downfold.py +0 -0
  74. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/scripts/TB2J_eigen.py +0 -0
  75. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/scripts/TB2J_magnon.py +0 -0
  76. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/scripts/TB2J_magnon_dos.py +0 -0
  77. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/scripts/TB2J_merge.py +0 -0
  78. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/scripts/TB2J_rotate.py +0 -0
  79. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/scripts/abacus2J.py +0 -0
  80. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/scripts/siesta2J.py +0 -0
  81. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/scripts/wann2J.py +0 -0
  82. {TB2J-0.8.2.3 → TB2J-0.8.2.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TB2J
3
- Version: 0.8.2.3
3
+ Version: 0.8.2.4
4
4
  Summary: TB2J: First principle to Heisenberg exchange J using tight-binding Green function method
5
5
  Home-page: UNKNOWN
6
6
  Author: Xu He
@@ -0,0 +1 @@
1
+ __version__ = "0.8.2.4"
@@ -322,8 +322,6 @@ Generation time: {now.strftime("%y/%m/%d %H:%M:%S")}
322
322
  returns:
323
323
  Jmat: (3*nspin,3*nspin) matrix.
324
324
  """
325
- i = self.i_spin(i)
326
- j = self.i_spin(j)
327
325
  n3 = self.nspin * 3
328
326
  Jmat = np.zeros((n3, n3), dtype=float)
329
327
  for i in range(self.nspin):
@@ -296,12 +296,11 @@ def gen_exchange_siesta(
296
296
  else:
297
297
  include_orbs[element] = None
298
298
  magnetic_elements = list(include_orbs.keys())
299
- print(magnetic_elements)
300
- print(include_orbs)
301
299
 
302
300
  fdf = sisl.get_sile(fdf_fname)
303
- geom = fdf.read_geometry()
301
+ # geom = fdf.read_geometry()
304
302
  H = fdf.read_hamiltonian()
303
+ geom = H.geometry
305
304
  if H.spin.is_colinear:
306
305
  print("Reading Siesta hamiltonian: colinear spin.")
307
306
  tbmodel_up = SislWrapper(H, spin=0, geom=geom)
@@ -33,7 +33,7 @@ class SislWrapper(AbstractTB):
33
33
  self.positions = g.xyz
34
34
  self.cell = np.array(g.sc.cell)
35
35
  for ia, a in enumerate(_atoms):
36
- atomic_numbers.append(a.Z)
36
+ atomic_numbers.append(a.Z % 200)
37
37
  self.atoms = Atoms(
38
38
  numbers=atomic_numbers, cell=self.cell, positions=self.positions
39
39
  )
@@ -276,9 +276,11 @@ class SislWFSXWrapper(SislWrapper):
276
276
  energy shift to be applied to all energies. If `None` no shift is applied. (default: None)
277
277
  """
278
278
 
279
- def __init__(self, geom, wfsx_sile, spin, ispin=None, shift_fermi=None):
279
+ def __init__(
280
+ self, sisl_hamiltonian, geom, wfsx_sile, spin, ispin=None, shift_fermi=None
281
+ ):
280
282
  # super().__init__(geom, spin=spin, ispin=ispin, shift_fermi=shift_fermi)
281
- super().__init__(sisl_hamiltonian, geom=None, spin=None)
283
+ super().__init__(sisl_hamiltonian, geom=geom, spin=spin)
282
284
  self.geom = geom
283
285
  self.wfsx_sile = wfsx_sile
284
286
  self.read_all()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TB2J
3
- Version: 0.8.2.3
3
+ Version: 0.8.2.4
4
4
  Summary: TB2J: First principle to Heisenberg exchange J using tight-binding Green function method
5
5
  Home-page: UNKNOWN
6
6
  Author: Xu He
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env python
2
2
  from setuptools import setup, find_packages
3
3
 
4
- __version__ = "0.8.2.3"
4
+ __version__ = "0.8.2.4"
5
5
 
6
6
  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. """
7
7
 
@@ -1 +0,0 @@
1
- __version__ = "0.8.2.3"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes