vasprocar 1.1.19.158__tar.gz → 1.1.19.161__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.

Potentially problematic release.


This version of vasprocar might be problematic. Click here for more details.

Files changed (130) hide show
  1. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/PKG-INFO +1 -3
  2. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/setup.py +6 -8
  3. vasprocar-1.1.19.161/vasprocar/__main__.py +157 -0
  4. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/_settings.py +8 -7
  5. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar.egg-info/PKG-INFO +1 -3
  6. vasprocar-1.1.19.161/vasprocar.egg-info/SOURCES.txt +32 -0
  7. vasprocar-1.1.19.161/vasprocar.egg-info/entry_points.txt +2 -0
  8. vasprocar-1.1.19.158/vasprocar/__main__.py +0 -153
  9. vasprocar-1.1.19.158/vasprocar/src/_QE/_info.py +0 -308
  10. vasprocar-1.1.19.158/vasprocar/src/_QE/_info_b.py +0 -422
  11. vasprocar-1.1.19.158/vasprocar/src/_QE/_label.py +0 -230
  12. vasprocar-1.1.19.158/vasprocar/src/_QE/_nscf.py +0 -892
  13. vasprocar-1.1.19.158/vasprocar/src/_QE/_var_kpoints.py +0 -86
  14. vasprocar-1.1.19.158/vasprocar/src/_QE/angular_momentum_plot/plot_projecao_angular_momentum.py +0 -318
  15. vasprocar-1.1.19.158/vasprocar/src/_QE/angular_momentum_plot/plot_projecao_angular_momentum_grace.py +0 -188
  16. vasprocar-1.1.19.158/vasprocar/src/_QE/contribuicao.py +0 -121
  17. vasprocar-1.1.19.158/vasprocar/src/_QE/dos_pdos_ldos.py +0 -527
  18. vasprocar-1.1.19.158/vasprocar/src/_QE/dos_plot/Grace/plot_dos_pdos_ldos.py +0 -162
  19. vasprocar-1.1.19.158/vasprocar/src/_QE/dos_plot/Grace/plot_dos_pdos_ldos_[polarizado].py +0 -202
  20. vasprocar-1.1.19.158/vasprocar/src/_QE/dos_plot/Grace/plot_dos_pdos_ldos_[polarizado_delta].py +0 -177
  21. vasprocar-1.1.19.158/vasprocar/src/_QE/dos_plot/plot_dos_pdos_ldos.py +0 -175
  22. vasprocar-1.1.19.158/vasprocar/src/_QE/dos_plot/plot_dos_pdos_ldos_[polarizado].py +0 -255
  23. vasprocar-1.1.19.158/vasprocar/src/_QE/kpoints_2D_3D.py +0 -503
  24. vasprocar-1.1.19.158/vasprocar/src/_QE/projecao_angular_momentum.py +0 -464
  25. vasprocar-1.1.19.158/vasprocar/src/_VASP/_info.py +0 -567
  26. vasprocar-1.1.19.158/vasprocar/src/_VASP/_info_b.py +0 -445
  27. vasprocar-1.1.19.158/vasprocar/src/_VASP/_label.py +0 -339
  28. vasprocar-1.1.19.158/vasprocar/src/_VASP/_nscf.py +0 -636
  29. vasprocar-1.1.19.158/vasprocar/src/_VASP/_var_kpoints.py +0 -203
  30. vasprocar-1.1.19.158/vasprocar/src/_VASP/chgcar.py +0 -460
  31. vasprocar-1.1.19.158/vasprocar/src/_VASP/contcar_info.py +0 -111
  32. vasprocar-1.1.19.158/vasprocar/src/_VASP/contribuicao.py +0 -822
  33. vasprocar-1.1.19.158/vasprocar/src/_VASP/dielectric_function.py +0 -318
  34. vasprocar-1.1.19.158/vasprocar/src/_VASP/dos_pdos_ldos.py +0 -634
  35. vasprocar-1.1.19.158/vasprocar/src/_VASP/dos_pdos_ldos_[polarizado].py +0 -657
  36. vasprocar-1.1.19.158/vasprocar/src/_VASP/kpoints_2D_3D.py +0 -585
  37. vasprocar-1.1.19.158/vasprocar/src/_VASP/parchg.py +0 -300
  38. vasprocar-1.1.19.158/vasprocar/src/_VASP/poscar_replace.py +0 -364
  39. vasprocar-1.1.19.158/vasprocar/src/_VASP/postar_combination.py +0 -103
  40. vasprocar-1.1.19.158/vasprocar/src/_VASP/potencial.py +0 -302
  41. vasprocar-1.1.19.158/vasprocar/src/_VASP/wave_function.py +0 -309
  42. vasprocar-1.1.19.158/vasprocar/src/etc/BibTeX.dat +0 -9
  43. vasprocar-1.1.19.158/vasprocar/src/etc/DOI.png +0 -0
  44. vasprocar-1.1.19.158/vasprocar/src/etc/Greek_alphabet.jpg +0 -0
  45. vasprocar-1.1.19.158/vasprocar/src/etc/codes_append/CONTCAR.vasp +0 -164
  46. vasprocar-1.1.19.158/vasprocar/src/etc/codes_append/CONTCAR_Cartesian.vasp +0 -164
  47. vasprocar-1.1.19.158/vasprocar/src/etc/codes_append/Gerador_Slab.py +0 -22
  48. vasprocar-1.1.19.158/vasprocar/src/etc/codes_append/Projection_BZs.py +0 -161
  49. vasprocar-1.1.19.158/vasprocar/src/etc/codes_append/Projection_kpoints.py +0 -208
  50. vasprocar-1.1.19.158/vasprocar/src/etc/codes_append/VASProcar_Direto_Cartesiano.py +0 -108
  51. vasprocar-1.1.19.158/vasprocar/src/etc/codes_append/_TESTE_projecao_localizacao_contour_video.py +0 -565
  52. vasprocar-1.1.19.158/vasprocar/src/inputs/input.vasprocar.bands +0 -95
  53. vasprocar-1.1.19.158/vasprocar/src/inputs/input.vasprocar.chgcar +0 -68
  54. vasprocar-1.1.19.158/vasprocar/src/inputs/input.vasprocar.dos +0 -99
  55. vasprocar-1.1.19.158/vasprocar/src/inputs/input.vasprocar.fermi_surface +0 -131
  56. vasprocar-1.1.19.158/vasprocar/src/inputs/input.vasprocar.location +0 -208
  57. vasprocar-1.1.19.158/vasprocar/src/inputs/input.vasprocar.locpot +0 -32
  58. vasprocar-1.1.19.158/vasprocar/src/inputs/input.vasprocar.orbitals +0 -140
  59. vasprocar-1.1.19.158/vasprocar/src/inputs/input.vasprocar.spin +0 -167
  60. vasprocar-1.1.19.158/vasprocar/src/inputs/input.vasprocar.spin_video +0 -213
  61. vasprocar-1.1.19.158/vasprocar/src/inputs/inputs.py +0 -27
  62. vasprocar-1.1.19.158/vasprocar/src/inputs/inputs_files.py +0 -121
  63. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_bandas_2D.py +0 -143
  64. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_chgcar.py +0 -95
  65. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_dielectric_function.py +0 -130
  66. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_dos_pdos_ldos.py +0 -269
  67. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_dos_pdos_ldos_[polarizado].py +0 -249
  68. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_dos_pdos_ldos_[polarizado_delta].py +0 -224
  69. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_parchg.py +0 -90
  70. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_potencial.py +0 -108
  71. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_projecao_localizacao.py +0 -164
  72. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_projecao_orbitais.py +0 -273
  73. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_projecao_psi.py +0 -164
  74. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_projecao_spin.py +0 -248
  75. vasprocar-1.1.19.158/vasprocar/src/plot/Grace/plot_wave_function.py +0 -90
  76. vasprocar-1.1.19.158/vasprocar/src/plot/_TESTE_plot_projecao_localizacao_contour_video.py +0 -414
  77. vasprocar-1.1.19.158/vasprocar/src/plot/_plot_settings.py +0 -141
  78. vasprocar-1.1.19.158/vasprocar/src/plot/plot_bandas_2D.py +0 -166
  79. vasprocar-1.1.19.158/vasprocar/src/plot/plot_bandas_3D_matplotlib.py +0 -150
  80. vasprocar-1.1.19.158/vasprocar/src/plot/plot_bandas_3D_plotly.py +0 -145
  81. vasprocar-1.1.19.158/vasprocar/src/plot/plot_bandas_4D_plotly.py +0 -155
  82. vasprocar-1.1.19.158/vasprocar/src/plot/plot_chgcar.py +0 -129
  83. vasprocar-1.1.19.158/vasprocar/src/plot/plot_dielectric_function.py +0 -115
  84. vasprocar-1.1.19.158/vasprocar/src/plot/plot_dos_pdos_ldos.py +0 -293
  85. vasprocar-1.1.19.158/vasprocar/src/plot/plot_dos_pdos_ldos_[polarizado].py +0 -592
  86. vasprocar-1.1.19.158/vasprocar/src/plot/plot_fermi_surface.py +0 -228
  87. vasprocar-1.1.19.158/vasprocar/src/plot/plot_level_countour.py +0 -181
  88. vasprocar-1.1.19.158/vasprocar/src/plot/plot_orbital_texture.py +0 -153
  89. vasprocar-1.1.19.158/vasprocar/src/plot/plot_orbital_texture_vector.py +0 -358
  90. vasprocar-1.1.19.158/vasprocar/src/plot/plot_parchg.py +0 -126
  91. vasprocar-1.1.19.158/vasprocar/src/plot/plot_potencial.py +0 -129
  92. vasprocar-1.1.19.158/vasprocar/src/plot/plot_projecao_localizacao.py +0 -323
  93. vasprocar-1.1.19.158/vasprocar/src/plot/plot_projecao_orbitais.py +0 -508
  94. vasprocar-1.1.19.158/vasprocar/src/plot/plot_projecao_psi.py +0 -322
  95. vasprocar-1.1.19.158/vasprocar/src/plot/plot_projecao_spin.py +0 -366
  96. vasprocar-1.1.19.158/vasprocar/src/plot/plot_spin_texture_2D.py +0 -293
  97. vasprocar-1.1.19.158/vasprocar/src/plot/plot_spin_texture_3D.py +0 -244
  98. vasprocar-1.1.19.158/vasprocar/src/plot/plot_spin_texture_4D.py +0 -154
  99. vasprocar-1.1.19.158/vasprocar/src/plot/plot_spin_texture_4D_[iso].py +0 -163
  100. vasprocar-1.1.19.158/vasprocar/src/plot/plot_spin_texture_contour.py +0 -384
  101. vasprocar-1.1.19.158/vasprocar/src/plot/plot_spin_texture_contour_video.py +0 -414
  102. vasprocar-1.1.19.158/vasprocar/src/plot/plot_wave_function.py +0 -126
  103. vasprocar-1.1.19.158/vasprocar.egg-info/SOURCES.txt +0 -126
  104. vasprocar-1.1.19.158/vasprocar.egg-info/entry_points.txt +0 -2
  105. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/LICENSE.txt +0 -0
  106. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/README.md +0 -0
  107. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/setup.cfg +0 -0
  108. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/__init__.py +0 -0
  109. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/_dft.py +0 -0
  110. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/_dft2kp.py +0 -0
  111. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/_loop.py +0 -0
  112. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/_update.py +0 -0
  113. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/bandas_2D.py +0 -0
  114. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/bandas_3D.py +0 -0
  115. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/bandas_4D.py +0 -0
  116. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/correction_file.py +0 -0
  117. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/fermi_surface.py +0 -0
  118. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/level_countour.py +0 -0
  119. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/orbital_texture.py +0 -0
  120. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/orbital_texture_vector.py +0 -0
  121. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/projecao_localizacao.py +0 -0
  122. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/projecao_orbitais.py +0 -0
  123. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/projecao_psi.py +0 -0
  124. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/projecao_spin.py +0 -0
  125. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/spin_texture.py +0 -0
  126. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/spin_texture_contour.py +0 -0
  127. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar/src/spin_texture_contour_video.py +0 -0
  128. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar.egg-info/dependency_links.txt +0 -0
  129. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar.egg-info/requires.txt +0 -0
  130. {vasprocar-1.1.19.158 → vasprocar-1.1.19.161}/vasprocar.egg-info/top_level.txt +0 -0
@@ -1,9 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vasprocar
3
- Version: 1.1.19.158
3
+ Version: 1.1.19.161
4
4
  Summary: VASProcar is an open-source package written in the Python 3 programming language, which aims to provide an intuitive tool for the post-processing of the output files produced by the DFT VASP/QE codes, through an interactive user interface.
5
- Home-page: https://doi.org/10.5281/zenodo.6343960
6
- Download-URL: https://doi.org/10.5281/zenodo.6343960
7
5
  Author: Augusto de Lelis Araujo and Renan da Paixao Maciel
8
6
  Author-email: augusto-lelis@outlook.com, renan.maciel@physics.uu.se
9
7
  License: GNU GPLv3
@@ -1,18 +1,17 @@
1
1
  from distutils.core import setup
2
2
  from setuptools import setup, find_packages
3
- import json
4
3
  from pathlib import Path
5
4
  from typing import Optional
5
+ import json
6
6
 
7
7
  setup(
8
8
  name = "vasprocar",
9
- version = "1.1.19.158",
10
- entry_points={'console_scripts': ['vasprocar = vasprocar:main']},
9
+ version = "1.1.19.161",
10
+ packages=['vasprocar', 'vasprocar.src'],
11
+ entry_points={'console_scripts': ['vasprocar = vasprocar.__main__:main']},
11
12
  description = "VASProcar is an open-source package written in the Python 3 programming language, which aims to provide an intuitive tool for the post-processing of the output files produced by the DFT VASP/QE codes, through an interactive user interface.",
12
- author = "Augusto de Lelis Araujo and Renan da Paixao Maciel",
13
+ author = "Augusto de Lelis Araujo and Renan da Paixao Maciel",
13
14
  author_email = "augusto-lelis@outlook.com, renan.maciel@physics.uu.se",
14
- url = "https://doi.org/10.5281/zenodo.6343960",
15
- download_url = "https://doi.org/10.5281/zenodo.6343960",
16
15
  license = "GNU GPLv3",
17
16
  install_requires=['numpy>=1.24.1',
18
17
  'scipy>=1.10.0',
@@ -21,10 +20,9 @@ setup(
21
20
  'moviepy>=1.0.2',
22
21
  'kaleido>=0.2.1',
23
22
  'requests>=2.31.0'],
24
- package_data={"": ['*.dat', '*.png', '*.jpg', '*']},
23
+ package_data={'samba_ilum': ['*.dat', '*.png', '*.jpg', '*']},
25
24
  )
26
25
 
27
-
28
26
  # python3 -m pip install --upgrade twine
29
27
  # python setup.py sdist
30
28
  # python -m twine upload dist/*
@@ -0,0 +1,157 @@
1
+ # VASProcar Copyright (C) 2023
2
+ # GNU GPL-3.0 license
3
+
4
+ #----------------
5
+ main_dir = 'src/'
6
+ dir_files = os.getcwd()
7
+ os.chdir(os.path.dirname(os.path.realpath(__file__)))
8
+ dir_vasprocar = os.path.dirname(os.path.realpath(__file__))
9
+ print(f'{dir_vasprocar}')
10
+ #------------------------
11
+
12
+ def main():
13
+ import os
14
+ import sys
15
+ import shutil
16
+ import requests
17
+
18
+ version = '1.1.19.161'
19
+ VASProcar_name = 'VASProcar version ' + version
20
+
21
+ url_1 = 'https://pypi.org/project/vasprocar'
22
+ url_2 = 'https://doi.org/10.5281/zenodo.6343960'
23
+ url_3 = 'https://github.com/Augusto-de-Lelis-Araujo/VASProcar-Python-tools-VASP'
24
+
25
+ print(" ")
26
+ print("######################################################################")
27
+ print(f'# {VASProcar_name} Copyright (C) 2023')
28
+ print(f'# GNU GPL-3.0 license')
29
+ print("# ====================================================================")
30
+ print(f'# {url_1} ')
31
+ print(f'# {url_2} ')
32
+ print(f'# {url_3} ')
33
+ print("######################################################################")
34
+ print("# Authors: ")
35
+ print("# ====================================================================")
36
+ print("# Augusto de Lelis Araujo ")
37
+ print("# [2022-2024] CNPEM|Ilum|LNNano (Campinas-SP/Brazil), ")
38
+ print("# [2007-2022] Federal University of Uberlandia (Uberlândia-MG/Brazil) ")
39
+ print("# e-mail: augusto-lelis@outlook.com ")
40
+ print("# ====================================================================")
41
+ print("# Renan da Paixao Maciel ")
42
+ print("# [2020-2024] Uppsala University (Uppsala/Sweden), ")
43
+ print("# [2014-2020] Federal University of Uberlandia (Uberlândia-MG/Brazil) ")
44
+ # print("# e-mail: renan.maciel@physics.uu.se ")
45
+ print("######################################################################")
46
+
47
+ print(" ")
48
+ print(" _ _____ _____ ____ ____ ____ _________ ____ ")
49
+ print("| | / / | / ___// __ \/ __ \/ __ \/ ____/ | / __ \ ")
50
+ print("| | / / /| | \__ \/ /_/ / /_/ / / / / / / /| | / /_/ / ")
51
+ print("| |/ / ___ |___/ / ____/ _, _/ /_/ / /___/ ___ |/ _, _/ ")
52
+ print("|___/_/ |_/____/_/ /_/ |_|\____/\____/_/ |_/_/ |_| ")
53
+ print(f' v{version}')
54
+ print(" ")
55
+
56
+ #------------------------------------------------------------------------------
57
+ # Adding the contribution of all orbitals to the Spin components (Sx|Sy|Sz) ---
58
+ #------------------------------------------------------------------------------
59
+ Orb_spin = [1]*16
60
+
61
+ #----------------------------------------------------
62
+ # code execution ------------------------------------
63
+ #----------------------------------------------------
64
+
65
+ run = main_dir + '_dft.py'
66
+ exec(open(run).read())
67
+
68
+ run = main_dir + 'inputs/' + 'inputs.py'
69
+ exec(open(run).read())
70
+
71
+ if (len(inputs) == 0 and DFT == '_?/'):
72
+
73
+ print("######################################################################")
74
+ print("# Which package was used for the DFT calculations? ===================")
75
+ print("# [1] VASP (Vienna Ab initio Simulation Package) ")
76
+ print("# [2] QE (Quantum ESPRESSO) ")
77
+ print("######################################################################")
78
+ pacote_dft = input(" "); pacote_dft = int(pacote_dft)
79
+ print(" ")
80
+
81
+ if (pacote_dft == 1): DFT = '_VASP/'
82
+ if (pacote_dft == 2): DFT = '_QE/'
83
+
84
+ if (DFT == '_VASP/'):
85
+ print("######################################################################")
86
+ print("## VASP (Vienna Ab initio Simulation Package) ===================== ##")
87
+ print("## Tested versions: 5.4.4, 6.2, 6.4.3 ============================= ##")
88
+ print("## ================================================================ ##")
89
+ print("# Basic files to execute the code: CONTCAR, KPOINTS, OUTCAR, PROCAR ##")
90
+ print("# For other features: DOSCAR, LOCPOT, WAVECAR or vasprun.xml ##")
91
+ print("######################################################################")
92
+ print(" ")
93
+
94
+ if (DFT == '_QE/'):
95
+ print("######################################################################")
96
+ print("## QE (Quantum ESPRESSO) >> Tested versions: 6.4.1 and 7.1 ======== ##")
97
+ print("## ================================================================ ##")
98
+ print("# Basic files to execute the code: scf.in, scf.out, nscf.in, ##")
99
+ print("# nscf.out, bands.in, bands.out ##")
100
+ print("# For other features: projwfc.in, projwfc.out, 'filband', ##")
101
+ print("# 'filproj'.projwfc_up and 'filpdos'.pdos_atm ##")
102
+ print("######################################################################")
103
+ print(" ")
104
+ #---------------------
105
+ read_contribuicao = 0
106
+ read_projwfc_up = 0
107
+ read_proj_J = 0
108
+
109
+ #------------------------------------------------
110
+ # Checking for updates for VASProcar ------------
111
+ #------------------------------------------------
112
+ try:
113
+ url = f"https://pypi.org/pypi/{'vasprocar'}/json"
114
+ response = requests.get(url)
115
+ dados = response.json()
116
+ current_version = dados['info']['version']; current_version = str(current_version)
117
+ if (current_version != version):
118
+ print(" ")
119
+ print("--------------------------------------------------------------")
120
+ print(" !!! Your VASProcar version is out of date !!! ")
121
+ print("--------------------------------------------------------------")
122
+ print("To update, close the VASProcar and enter into the terminal: ")
123
+ print(" pip install --upgrade vasprocar ")
124
+ print("--------------------------------------------------------------")
125
+ print(" ")
126
+ print(" ")
127
+ ...
128
+ except Exception as e:
129
+ print("--------------------------------------------------------------")
130
+ print(" !!! Unable to verify the current version of VASProcar !!! ")
131
+ print("--------------------------------------------------------------")
132
+ print(" ")
133
+
134
+ if (len(inputs) == 0):
135
+ run = main_dir + '_settings.py'
136
+ exec(open(run).read())
137
+
138
+ if (len(inputs) > 0):
139
+ for inp in range(len(inputs)):
140
+ #---------------------------------------------------------------------------
141
+ exec(open(dir_files + '/inputs/' + 'input.vasprocar.' + inputs[inp]).read())
142
+ #---------------------------------------------------------------------------
143
+ if (inputs[inp] == 'bands'): opcao = -10
144
+ if (inputs[inp] == 'spin'): opcao = -20
145
+ if (inputs[inp] == 'orbitals'): opcao = -30
146
+ if (inputs[inp] == 'dos'): opcao = -31
147
+ if (inputs[inp] == 'location'): opcao = -32
148
+ if (inputs[inp] == 'locpot'): opcao = -40
149
+ if (inputs[inp] == 'chgcar'): opcao = -41
150
+ if (inputs[inp] == 'spin_video'): opcao = -23
151
+ if (inputs[inp] == 'fermi_surface'): opcao = -11
152
+ #-----------------------------------------------
153
+ run = main_dir + '_settings.py'
154
+ exec(open(run).read())
155
+
156
+ if __name__ == '__main__':
157
+ main()
@@ -170,8 +170,9 @@ if (len(inputs) == 0 and DFT == '_VASP/'):
170
170
 
171
171
  if (opcao == 5 or opcao == -5):
172
172
  print("## ======================================================== ##")
173
- print("## [51] Generate KPOINTS file (2D Plane or 3D Mesh in ZB) ##")
174
- print("## [52] POSCAR - Ion substitution in the lattice ##")
173
+ # print("## [50] POSCAR: Convert ion coord. (Cartesian <> Direct) ##")
174
+ print("## [51] POSCAR: Ion substitution in the lattice ##")
175
+ print("## [52] Generate KPOINTS file (2D Plane or 3D Mesh in ZB) ##")
175
176
  print("## [53] Combining/Merging different POTCAR files ##")
176
177
  print("## [54] Tip: Using Multiple PROCAR Files ##")
177
178
  print("## [55] Check and fix VASP output files ##")
@@ -240,7 +241,7 @@ shutil.copyfile(source, destination)
240
241
  # Getting information from CONTCAR/OUTCAR/PROCAR files: ----------------
241
242
  # ----------------------------------------------------------------------
242
243
 
243
- if (opcao > -100 and opcao < 100 and opcao != 41 and opcao != -41 and opcao != 51 and opcao != -51 and opcao != 52 and opcao != -52 and opcao != 53 and opcao != -53 and opcao != 6 and opcao != -6):
244
+ if (opcao > -100 and opcao < 100 and opcao != 41 and opcao != -41 and opcao != 50 and opcao != 51 and opcao != -51 and opcao != 52 and opcao != -52 and opcao != 53 and opcao != -53 and opcao != 6 and opcao != -6):
244
245
  execute_python_file(filename = DFT + '_info_b.py')
245
246
 
246
247
  print("#######################################################################")
@@ -365,11 +366,11 @@ if (opcao == 43 or opcao == -43):
365
366
  # if (opcao == 44 or opcao == -44):
366
367
  # execute_python_file(filename = DFT + 'wave_function.py')
367
368
 
368
- if (opcao == 51 or opcao == -51):
369
- execute_python_file(filename = DFT + 'kpoints_2D_3D.py')
369
+ if (opcao == 52 or opcao == -50):
370
+ execute_python_file(filename = DFT + 'poscar_converter_coord.py')
370
371
 
371
- if (opcao == 52 or opcao == -52):
372
- execute_python_file(filename = DFT + 'poscar_replace.py')
372
+ if (opcao == 51 or opcao == -52):
373
+ execute_python_file(filename = DFT + 'kpoints_2D_3D.py')
373
374
 
374
375
  if (opcao == 53 or opcao == -53):
375
376
  execute_python_file(filename = DFT + 'postar_combination.py')
@@ -1,9 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vasprocar
3
- Version: 1.1.19.158
3
+ Version: 1.1.19.161
4
4
  Summary: VASProcar is an open-source package written in the Python 3 programming language, which aims to provide an intuitive tool for the post-processing of the output files produced by the DFT VASP/QE codes, through an interactive user interface.
5
- Home-page: https://doi.org/10.5281/zenodo.6343960
6
- Download-URL: https://doi.org/10.5281/zenodo.6343960
7
5
  Author: Augusto de Lelis Araujo and Renan da Paixao Maciel
8
6
  Author-email: augusto-lelis@outlook.com, renan.maciel@physics.uu.se
9
7
  License: GNU GPLv3
@@ -0,0 +1,32 @@
1
+ LICENSE.txt
2
+ README.md
3
+ setup.cfg
4
+ setup.py
5
+ vasprocar/__init__.py
6
+ vasprocar/__main__.py
7
+ vasprocar.egg-info/PKG-INFO
8
+ vasprocar.egg-info/SOURCES.txt
9
+ vasprocar.egg-info/dependency_links.txt
10
+ vasprocar.egg-info/entry_points.txt
11
+ vasprocar.egg-info/requires.txt
12
+ vasprocar.egg-info/top_level.txt
13
+ vasprocar/src/_dft.py
14
+ vasprocar/src/_dft2kp.py
15
+ vasprocar/src/_loop.py
16
+ vasprocar/src/_settings.py
17
+ vasprocar/src/_update.py
18
+ vasprocar/src/bandas_2D.py
19
+ vasprocar/src/bandas_3D.py
20
+ vasprocar/src/bandas_4D.py
21
+ vasprocar/src/correction_file.py
22
+ vasprocar/src/fermi_surface.py
23
+ vasprocar/src/level_countour.py
24
+ vasprocar/src/orbital_texture.py
25
+ vasprocar/src/orbital_texture_vector.py
26
+ vasprocar/src/projecao_localizacao.py
27
+ vasprocar/src/projecao_orbitais.py
28
+ vasprocar/src/projecao_psi.py
29
+ vasprocar/src/projecao_spin.py
30
+ vasprocar/src/spin_texture.py
31
+ vasprocar/src/spin_texture_contour.py
32
+ vasprocar/src/spin_texture_contour_video.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ vasprocar = vasprocar.__main__:main
@@ -1,153 +0,0 @@
1
- # VASProcar Copyright (C) 2023
2
- # GNU GPL-3.0 license
3
-
4
- import os
5
- import sys
6
- import shutil
7
- import requests
8
-
9
- #----------------
10
- main_dir = 'src/'
11
- dir_files = os.getcwd()
12
- os.chdir(os.path.dirname(os.path.realpath(__file__)))
13
- dir_vasprocar = os.path.dirname(os.path.realpath(__file__))
14
- print(f'{dir_vasprocar}')
15
- #------------------------
16
-
17
- version = '1.1.19.158'
18
- VASProcar_name = 'VASProcar version ' + version
19
-
20
- url_1 = 'https://pypi.org/project/vasprocar'
21
- url_2 = 'https://doi.org/10.5281/zenodo.6343960'
22
- url_3 = 'https://github.com/Augusto-de-Lelis-Araujo/VASProcar-Python-tools-VASP'
23
-
24
- print(" ")
25
- print("######################################################################")
26
- print(f'# {VASProcar_name} Copyright (C) 2023')
27
- print(f'# GNU GPL-3.0 license')
28
- print("# ====================================================================")
29
- print(f'# {url_1} ')
30
- print(f'# {url_2} ')
31
- print(f'# {url_3} ')
32
- print("######################################################################")
33
- print("# Authors: ")
34
- print("# ====================================================================")
35
- print("# Augusto de Lelis Araujo ")
36
- print("# [2022-2024] CNPEM|Ilum|LNNano (Campinas-SP/Brazil), ")
37
- print("# [2007-2022] Federal University of Uberlandia (Uberlândia-MG/Brazil) ")
38
- print("# e-mail: augusto-lelis@outlook.com ")
39
- print("# ====================================================================")
40
- print("# Renan da Paixao Maciel ")
41
- print("# [2020-2024] Uppsala University (Uppsala/Sweden), ")
42
- print("# [2014-2020] Federal University of Uberlandia (Uberlândia-MG/Brazil) ")
43
- # print("# e-mail: renan.maciel@physics.uu.se ")
44
- print("######################################################################")
45
-
46
- print(" ")
47
- print(" _ _____ _____ ____ ____ ____ _________ ____ ")
48
- print("| | / / | / ___// __ \/ __ \/ __ \/ ____/ | / __ \ ")
49
- print("| | / / /| | \__ \/ /_/ / /_/ / / / / / / /| | / /_/ / ")
50
- print("| |/ / ___ |___/ / ____/ _, _/ /_/ / /___/ ___ |/ _, _/ ")
51
- print("|___/_/ |_/____/_/ /_/ |_|\____/\____/_/ |_/_/ |_| ")
52
- print(f' v{version}')
53
- print(" ")
54
-
55
- #------------------------------------------------------------------------------
56
- # Adding the contribution of all orbitals to the Spin components (Sx|Sy|Sz) ---
57
- #------------------------------------------------------------------------------
58
- Orb_spin = [1]*16
59
-
60
- #----------------------------------------------------
61
- # code execution ------------------------------------
62
- #----------------------------------------------------
63
-
64
- run = main_dir + '_dft.py'
65
- exec(open(run).read())
66
-
67
- run = main_dir + 'inputs/' + 'inputs.py'
68
- exec(open(run).read())
69
-
70
- if (len(inputs) == 0 and DFT == '_?/'):
71
-
72
- print("######################################################################")
73
- print("# Which package was used for the DFT calculations? ===================")
74
- print("# [1] VASP (Vienna Ab initio Simulation Package) ")
75
- print("# [2] QE (Quantum ESPRESSO) ")
76
- print("######################################################################")
77
- pacote_dft = input(" "); pacote_dft = int(pacote_dft)
78
- print(" ")
79
-
80
- if (pacote_dft == 1): DFT = '_VASP/'
81
- if (pacote_dft == 2): DFT = '_QE/'
82
-
83
- if (DFT == '_VASP/'):
84
- print("######################################################################")
85
- print("## VASP (Vienna Ab initio Simulation Package) ===================== ##")
86
- print("## Tested versions: 5.4.4, 6.2, 6.4.3 ============================= ##")
87
- print("## ================================================================ ##")
88
- print("# Basic files to execute the code: CONTCAR, KPOINTS, OUTCAR, PROCAR ##")
89
- print("# For other features: DOSCAR, LOCPOT, WAVECAR or vasprun.xml ##")
90
- print("######################################################################")
91
- print(" ")
92
-
93
- if (DFT == '_QE/'):
94
- print("######################################################################")
95
- print("## QE (Quantum ESPRESSO) >> Tested versions: 6.4.1 and 7.1 ======== ##")
96
- print("## ================================================================ ##")
97
- print("# Basic files to execute the code: scf.in, scf.out, nscf.in, ##")
98
- print("# nscf.out, bands.in, bands.out ##")
99
- print("# For other features: projwfc.in, projwfc.out, 'filband', ##")
100
- print("# 'filproj'.projwfc_up and 'filpdos'.pdos_atm ##")
101
- print("######################################################################")
102
- print(" ")
103
- #---------------------
104
- read_contribuicao = 0
105
- read_projwfc_up = 0
106
- read_proj_J = 0
107
-
108
- #------------------------------------------------
109
- # Checking for updates for VASProcar ------------
110
- #------------------------------------------------
111
- try:
112
- url = f"https://pypi.org/pypi/{'vasprocar'}/json"
113
- response = requests.get(url)
114
- dados = response.json()
115
- current_version = dados['info']['version']; current_version = str(current_version)
116
- if (current_version != version):
117
- print(" ")
118
- print("--------------------------------------------------------------")
119
- print(" !!! Your VASProcar version is out of date !!! ")
120
- print("--------------------------------------------------------------")
121
- print("To update, close the VASProcar and enter into the terminal: ")
122
- print(" pip install --upgrade vasprocar ")
123
- print("--------------------------------------------------------------")
124
- print(" ")
125
- print(" ")
126
- ...
127
- except Exception as e:
128
- print("--------------------------------------------------------------")
129
- print(" !!! Unable to verify the current version of VASProcar !!! ")
130
- print("--------------------------------------------------------------")
131
- print(" ")
132
-
133
- if (len(inputs) == 0):
134
- run = main_dir + '_settings.py'
135
- exec(open(run).read())
136
-
137
- if (len(inputs) > 0):
138
- for inp in range(len(inputs)):
139
- #---------------------------------------------------------------------------
140
- exec(open(dir_files + '/inputs/' + 'input.vasprocar.' + inputs[inp]).read())
141
- #---------------------------------------------------------------------------
142
- if (inputs[inp] == 'bands'): opcao = -10
143
- if (inputs[inp] == 'spin'): opcao = -20
144
- if (inputs[inp] == 'orbitals'): opcao = -30
145
- if (inputs[inp] == 'dos'): opcao = -31
146
- if (inputs[inp] == 'location'): opcao = -32
147
- if (inputs[inp] == 'locpot'): opcao = -40
148
- if (inputs[inp] == 'chgcar'): opcao = -41
149
- if (inputs[inp] == 'spin_video'): opcao = -23
150
- if (inputs[inp] == 'fermi_surface'): opcao = -11
151
- #-----------------------------------------------
152
- run = main_dir + '_settings.py'
153
- exec(open(run).read())