TB2J 0.9.11.3__tar.gz → 0.9.12.5__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 (119) hide show
  1. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/PKG-INFO +1 -1
  2. tb2j-0.9.12.5/TB2J/__init__.py +1 -0
  3. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/magnon/magnon3.py +18 -7
  4. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/TB2J_eigen.py +2 -1
  5. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/TB2J_merge.py +1 -1
  6. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/TB2J_plot_magnon_bands.py +9 -14
  7. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/versioninfo.py +3 -0
  8. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J.egg-info/PKG-INFO +1 -1
  9. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J.egg-info/entry_points.txt +5 -5
  10. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/pyproject.toml +7 -7
  11. tb2j-0.9.11.3/TB2J/__init__.py +0 -1
  12. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/LICENSE +0 -0
  13. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/README.md +0 -0
  14. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/Jdownfolder.py +0 -0
  15. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/Jtensor.py +0 -0
  16. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/MAE.py +0 -0
  17. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/MAEGreen.py +0 -0
  18. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/Oiju.py +0 -0
  19. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/Oiju_epc.py +0 -0
  20. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/anisotropy.py +0 -0
  21. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/basis.py +0 -0
  22. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/citation.py +0 -0
  23. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/contour.py +0 -0
  24. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/density_matrix.py +0 -0
  25. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/downfold/Hdownfolder.py +0 -0
  26. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/epc.py +0 -0
  27. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/exchange.py +0 -0
  28. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/exchangeCL2.py +0 -0
  29. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/exchange_params.py +0 -0
  30. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/exchange_pert.py +0 -0
  31. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/exchange_qspace.py +0 -0
  32. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/external/__init__.py +0 -0
  33. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/external/p_tqdm.py +0 -0
  34. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/gpaw_wrapper.py +0 -0
  35. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/green.py +0 -0
  36. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/greentest.py +0 -0
  37. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/__init__.py +0 -0
  38. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/abacus/__init__.py +0 -0
  39. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/abacus/abacus_api.py +0 -0
  40. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/abacus/abacus_wrapper.py +0 -0
  41. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/abacus/gen_exchange_abacus.py +0 -0
  42. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/abacus/orbital_api.py +0 -0
  43. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/abacus/stru_api.py +0 -0
  44. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/abacus/test_density_matrix.py +0 -0
  45. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/abacus/test_read_HRSR.py +0 -0
  46. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/abacus/test_read_stru.py +0 -0
  47. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/gpaw_interface.py +0 -0
  48. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/lawaf_interface.py +0 -0
  49. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/manager.py +0 -0
  50. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/siesta_interface.py +0 -0
  51. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/interfaces/wannier90_interface.py +0 -0
  52. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/io_exchange/__init__.py +0 -0
  53. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/io_exchange/io_exchange.py +0 -0
  54. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/io_exchange/io_multibinit.py +0 -0
  55. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/io_exchange/io_tomsasd.py +0 -0
  56. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/io_exchange/io_txt.py +0 -0
  57. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/io_exchange/io_uppasd.py +0 -0
  58. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/io_exchange/io_vampire.py +0 -0
  59. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/io_merge.py +0 -0
  60. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/kpoints.py +0 -0
  61. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/magnon/__init__.py +0 -0
  62. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/magnon/io_exchange2.py +0 -0
  63. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/magnon/magnon_band.py +0 -0
  64. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/magnon/magnon_dos.py +0 -0
  65. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/magnon/magnon_io.py +0 -0
  66. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/magnon/magnon_math.py +0 -0
  67. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/magnon/plot.py +0 -0
  68. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/magnon/plot_magnon_dos_cli.py +0 -0
  69. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/magnon/structure.py +0 -0
  70. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/mathutils/__init__.py +0 -0
  71. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/mathutils/auto_kpath.py +0 -0
  72. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/mathutils/fermi.py +0 -0
  73. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/mathutils/fibonacci_sphere.py +0 -0
  74. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/mathutils/kR_convert.py +0 -0
  75. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/mathutils/lowdin.py +0 -0
  76. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/mathutils/rotate_spin.py +0 -0
  77. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/myTB.py +0 -0
  78. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/mycfr.py +0 -0
  79. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/orbital_magmom.py +0 -0
  80. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/orbmap.py +0 -0
  81. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/pauli.py +0 -0
  82. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/pert.py +0 -0
  83. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/plot.py +0 -0
  84. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/rotate_atoms.py +0 -0
  85. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/rotate_siestaDM.py +0 -0
  86. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/TB2J_downfold.py +0 -0
  87. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/TB2J_magnon.py +0 -0
  88. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/TB2J_magnon2.py +0 -0
  89. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/TB2J_magnon_dos.py +0 -0
  90. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/TB2J_rotate.py +0 -0
  91. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/TB2J_rotateDM.py +0 -0
  92. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/__init__.py +0 -0
  93. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/abacus2J.py +0 -0
  94. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/siesta2J.py +0 -0
  95. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/scripts/wann2J.py +0 -0
  96. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/sisl_wrapper.py +0 -0
  97. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/spinham/__init__.py +0 -0
  98. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/spinham/base_parser.py +0 -0
  99. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/spinham/constants.py +0 -0
  100. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/spinham/hamiltonian.py +0 -0
  101. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/spinham/hamiltonian_terms.py +0 -0
  102. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/spinham/plot.py +0 -0
  103. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/spinham/qsolver.py +0 -0
  104. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/spinham/spin_api.py +0 -0
  105. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/spinham/spin_xml.py +0 -0
  106. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/spinham/supercell.py +0 -0
  107. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/symmetrize_J.py +0 -0
  108. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/tensor_rotate.py +0 -0
  109. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/thetaphi.py +0 -0
  110. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/utest.py +0 -0
  111. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/utils.py +0 -0
  112. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/wannier/__init__.py +0 -0
  113. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/wannier/w90_parser.py +0 -0
  114. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J/wannier/w90_tb_parser.py +0 -0
  115. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J.egg-info/SOURCES.txt +0 -0
  116. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J.egg-info/dependency_links.txt +0 -0
  117. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J.egg-info/requires.txt +0 -0
  118. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/TB2J.egg-info/top_level.txt +0 -0
  119. {tb2j-0.9.11.3 → tb2j-0.9.12.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TB2J
3
- Version: 0.9.11.3
3
+ Version: 0.9.12.5
4
4
  Summary: TB2J: First principle to Heisenberg exchange J using tight-binding Green function method
5
5
  Author-email: Xu He <mailhexu@gmail.com>
6
6
  Maintainer-email: Xu He <mailhexu@gmail.com>
@@ -0,0 +1 @@
1
+
@@ -733,10 +733,25 @@ def plot_magnon_bands_from_TB2J(
733
733
  return magnon
734
734
 
735
735
 
736
- def main():
737
- """Command line interface for plotting magnon bands from TB2J results."""
736
+ def plot_magnon_bands_cli():
738
737
  import argparse
739
-
738
+ import warnings
739
+
740
+ warnings.warn(
741
+ """
742
+ # !!!!!!!!!!!!!!!!!! WARNING: =============================
743
+ #
744
+ # This functionality is under development and should not be used in production.
745
+ # It is provided for testing and development purposes only.
746
+ # Please use with caution and report any issues to the developers.
747
+ #
748
+ # This warning will be removed in future releases.
749
+ # =====================================
750
+
751
+ """,
752
+ UserWarning,
753
+ stacklevel=2,
754
+ )
740
755
  parser = argparse.ArgumentParser(
741
756
  description="Plot magnon band structure from TB2J results"
742
757
  )
@@ -877,10 +892,6 @@ def main():
877
892
  plot_magnon_bands_from_TB2J(params)
878
893
 
879
894
 
880
- if __name__ == "__main__":
881
- main()
882
-
883
-
884
895
  class MagnonASEWrapper:
885
896
  def __init__(self, magnon: Magnon):
886
897
  self.magnon = magnon
@@ -45,4 +45,5 @@ def write_eigen_info():
45
45
  write_eigen(args.qmesh, args.gamma, output_fname=args.output_fname)
46
46
 
47
47
 
48
- write_eigen_info()
48
+ if __name__ == "__main__":
49
+ write_eigen_info()
@@ -2,7 +2,7 @@
2
2
  import argparse
3
3
 
4
4
  from TB2J.io_merge import merge
5
- from TB2J.version_info import print_license
5
+ from TB2J.versioninfo import print_license
6
6
 
7
7
 
8
8
  def main():
@@ -1,15 +1,10 @@
1
1
  #!/usr/bin/env python3
2
+ import warnings
2
3
 
4
+ from TB2J.magnon.magnon3 import main
3
5
 
4
- if __name__ == "__main__":
5
- # add a warning messege that this functionality is under development and should not be used in production.
6
- # make it visually distinct, e.g. with a different color or formatting.
7
- import warnings
8
-
9
- from TB2J.magnon.magnon3 import main
10
-
11
- warnings.warn(
12
- """
6
+ warnings.warn(
7
+ """
13
8
  # !!!!!!!!!!!!!!!!!! WARNING: =============================
14
9
  #
15
10
  # This functionality is under development and should not be used in production.
@@ -20,8 +15,8 @@ if __name__ == "__main__":
20
15
  # =====================================
21
16
 
22
17
  """,
23
- UserWarning,
24
- stacklevel=2,
25
- )
26
- # Call the main function from the magnons module
27
- main()
18
+ UserWarning,
19
+ stacklevel=2,
20
+ )
21
+ # Call the main function from the magnons module
22
+ main()
@@ -1,7 +1,10 @@
1
+ import importlib.metadata
1
2
  from datetime import datetime
2
3
 
3
4
  import TB2J
4
5
 
6
+ __version__ = importlib.metadata.version("TB2J")
7
+
5
8
 
6
9
  def print_license():
7
10
  print(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TB2J
3
- Version: 0.9.11.3
3
+ Version: 0.9.12.5
4
4
  Summary: TB2J: First principle to Heisenberg exchange J using tight-binding Green function method
5
5
  Author-email: Xu He <mailhexu@gmail.com>
6
6
  Maintainer-email: Xu He <mailhexu@gmail.com>
@@ -1,11 +1,11 @@
1
1
  [console_scripts]
2
2
  TB2J_downfold.py = TB2J.scripts.TB2J_downfold:main
3
- TB2J_eigen.py = TB2J.scripts.TB2J_eigen:main
4
- TB2J_magnon.py = TB2J.scripts.TB2J_magnon:main
5
- TB2J_magnon2.py = TB2J.scripts.TB2J_magnon2:main
6
- TB2J_magnon_dos.py = TB2J.scripts.TB2J_magnon_dos:main
3
+ TB2J_eigen.py = TB2J.scripts.TB2J_eigen:write_eigen_info
4
+ TB2J_magnon.py = TB2J.scripts.TB2J_magnon:plot_magnon
5
+ TB2J_magnon2.py = TB2J.scripts.TB2J_magnon2:plot_tb2j_magnon_bands_cli
6
+ TB2J_magnon_dos.py = TB2J.plot:command_line_plot_magnon_dos
7
7
  TB2J_merge.py = TB2J.scripts.TB2J_merge:main
8
- TB2J_plot_magnon_bands.py = TB2J.scripts.TB2J_plot_magnon_bands:main
8
+ TB2J_plot_magnon_bands.py = TB2J.magnon.magnon3:plot_magnon_bands_cli
9
9
  TB2J_plot_magnon_dos.py = TB2J.magnon.plot_magnon_dos_cli:main
10
10
  TB2J_rotate.py = TB2J.scripts.TB2J_rotate:main
11
11
  TB2J_rotateDM.py = TB2J.scripts.TB2J_rotateDM:main
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "TB2J"
7
- version = "0.9.11.3"
7
+ version = "0.9.12.5"
8
8
  description = "TB2J: First principle to Heisenberg exchange J using tight-binding Green function method"
9
9
  readme = "README.md"
10
10
  license = { text = "BSD-2-Clause" }
@@ -60,15 +60,15 @@ Issues = "https://github.com/mailhexu/TB2J/issues"
60
60
  "TB2J_rotate.py" = "TB2J.scripts.TB2J_rotate:main"
61
61
  "TB2J_rotateDM.py" = "TB2J.scripts.TB2J_rotateDM:main"
62
62
  "TB2J_merge.py" = "TB2J.scripts.TB2J_merge:main"
63
- "TB2J_magnon.py" = "TB2J.scripts.TB2J_magnon:main"
64
- "TB2J_magnon2.py" = "TB2J.scripts.TB2J_magnon2:main"
65
- "TB2J_magnon_dos.py" = "TB2J.scripts.TB2J_magnon_dos:main"
63
+ "TB2J_magnon.py" = "TB2J.scripts.TB2J_magnon:plot_magnon"
64
+ "TB2J_magnon2.py" = "TB2J.scripts.TB2J_magnon2:plot_tb2j_magnon_bands_cli"
65
+ "TB2J_magnon_dos.py" = "TB2J.plot:command_line_plot_magnon_dos"
66
66
  "TB2J_downfold.py" = "TB2J.scripts.TB2J_downfold:main"
67
- "TB2J_eigen.py" = "TB2J.scripts.TB2J_eigen:main"
68
- "TB2J_plot_magnon_bands.py" = "TB2J.scripts.TB2J_plot_magnon_bands:main"
67
+ "TB2J_eigen.py" = "TB2J.scripts.TB2J_eigen:write_eigen_info"
68
+ "TB2J_plot_magnon_bands.py" = "TB2J.magnon.magnon3:plot_magnon_bands_cli"
69
+ "TB2J_plot_magnon_dos.py" = "TB2J.magnon.plot_magnon_dos_cli:main"
69
70
  "TB2J_symmetrize.py" = "TB2J.symmetrize_J:symmetrize_J_cli"
70
71
  "lawaf2J.py" = "TB2J.interfaces.lawaf_interface:lawaf2J_cli"
71
- "TB2J_plot_magnon_dos.py" = "TB2J.magnon.plot_magnon_dos_cli:main"
72
72
 
73
73
  [tool.setuptools]
74
74
  packages = ["TB2J"]
@@ -1 +0,0 @@
1
- __version__ = "0.9.10.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