pyphyschemtools 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

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 (29) hide show
  1. pyphyschemtools/.__init__.py.swp +0 -0
  2. pyphyschemtools/.ipynb_checkpoints/Chem3D-checkpoint.py +835 -0
  3. pyphyschemtools/.ipynb_checkpoints/PeriodicTable-checkpoint.py +294 -0
  4. pyphyschemtools/.ipynb_checkpoints/aithermo-checkpoint.py +349 -0
  5. pyphyschemtools/.ipynb_checkpoints/core-checkpoint.py +120 -0
  6. pyphyschemtools/.ipynb_checkpoints/spectra-checkpoint.py +471 -0
  7. pyphyschemtools/.ipynb_checkpoints/survey-checkpoint.py +1048 -0
  8. pyphyschemtools/.ipynb_checkpoints/sympyUtilities-checkpoint.py +51 -0
  9. pyphyschemtools/.ipynb_checkpoints/tools4AS-checkpoint.py +964 -0
  10. pyphyschemtools/Chem3D.py +12 -8
  11. pyphyschemtools/ML.py +6 -4
  12. pyphyschemtools/PeriodicTable.py +9 -4
  13. pyphyschemtools/__init__.py +3 -3
  14. pyphyschemtools/aithermo.py +5 -6
  15. pyphyschemtools/core.py +7 -6
  16. pyphyschemtools/spectra.py +78 -58
  17. pyphyschemtools/survey.py +0 -449
  18. pyphyschemtools/sympyUtilities.py +9 -9
  19. pyphyschemtools/tools4AS.py +12 -8
  20. {pyphyschemtools-0.1.0.dist-info → pyphyschemtools-0.1.1.dist-info}/METADATA +2 -2
  21. {pyphyschemtools-0.1.0.dist-info → pyphyschemtools-0.1.1.dist-info}/RECORD +29 -20
  22. /pyphyschemtools/{icons-logos-banner → icons_logos_banner}/Logo_pyPhysChem_border.svg +0 -0
  23. /pyphyschemtools/{icons-logos-banner → icons_logos_banner}/__init__.py +0 -0
  24. /pyphyschemtools/{icons-logos-banner → icons_logos_banner}/logo.png +0 -0
  25. /pyphyschemtools/{icons-logos-banner → icons_logos_banner}/tools4pyPC_banner.png +0 -0
  26. /pyphyschemtools/{icons-logos-banner → icons_logos_banner}/tools4pyPC_banner.svg +0 -0
  27. {pyphyschemtools-0.1.0.dist-info → pyphyschemtools-0.1.1.dist-info}/WHEEL +0 -0
  28. {pyphyschemtools-0.1.0.dist-info → pyphyschemtools-0.1.1.dist-info}/licenses/LICENSE +0 -0
  29. {pyphyschemtools-0.1.0.dist-info → pyphyschemtools-0.1.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,51 @@
1
+ ############################################################
2
+ # Sympy
3
+ ############################################################
4
+ from .visualID_Eng import fg, bg, hl
5
+ from .core import centerTitle, centertxt
6
+
7
+ def PrintLatexStyleSymPyEquation(spe):
8
+ """
9
+ Function that displays a SymPy expression (spe) in a jupyter notebbok after its conversion into a LaTeX / Math output
10
+
11
+ Input: spe= SymPy expression
12
+
13
+ Output: Pretty printing of spe
14
+
15
+ """
16
+ from IPython.display import display,Math
17
+ import sympy as sym
18
+ display(Math(sym.latex(spe)))
19
+ return
20
+
21
+ def e2Lists(eigenvectors, sort=False):
22
+ '''
23
+ returns two separate lists from the list of tuples returned by the eigenvects() function of SymPy
24
+
25
+ input:
26
+ - the list of tuples returned by eigenvects
27
+ - sort (default: False): returns sorted eigenvalues and corresponding eigenvectors if True
28
+
29
+ output
30
+ - list of eigenvalues, sorted or not
31
+ - list of corresponding eigenvectors
32
+ '''
33
+ import numpy as np
34
+ eps = list()
35
+ MOs = list()
36
+ for mo in eigenvectors:
37
+ eps.extend(mo[0] for i in range(mo[1]))
38
+ for eigvc in mo[2]:
39
+ MOs.append(eigvc.normalized())
40
+ if (sort):
41
+ sortindex=[]
42
+ for i,j in sorted(enumerate(eps), key=lambda j: j[1]):
43
+ sortindex.append(i)
44
+ eps = sorted(eps)
45
+
46
+ MOs_sorted=[]
47
+ for i, mo in enumerate(MOs):
48
+ MOs_sorted.append(MOs[sortindex[i]])
49
+ return eps,MOs_sorted
50
+ else:
51
+ return eps,MOs