pyphyschemtools 0.1.0__py3-none-any.whl → 0.1.2__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.
- pyphyschemtools/.__init__.py.swp +0 -0
- pyphyschemtools/.ipynb_checkpoints/Chem3D-checkpoint.py +835 -0
- pyphyschemtools/.ipynb_checkpoints/PeriodicTable-checkpoint.py +294 -0
- pyphyschemtools/.ipynb_checkpoints/aithermo-checkpoint.py +349 -0
- pyphyschemtools/.ipynb_checkpoints/core-checkpoint.py +120 -0
- pyphyschemtools/.ipynb_checkpoints/spectra-checkpoint.py +471 -0
- pyphyschemtools/.ipynb_checkpoints/survey-checkpoint.py +1048 -0
- pyphyschemtools/.ipynb_checkpoints/sympyUtilities-checkpoint.py +51 -0
- pyphyschemtools/.ipynb_checkpoints/tools4AS-checkpoint.py +964 -0
- pyphyschemtools/.readthedocs.yaml +23 -0
- pyphyschemtools/Chem3D.py +12 -8
- pyphyschemtools/ML.py +6 -4
- pyphyschemtools/PeriodicTable.py +9 -4
- pyphyschemtools/__init__.py +3 -3
- pyphyschemtools/aithermo.py +5 -6
- pyphyschemtools/core.py +7 -6
- pyphyschemtools/spectra.py +78 -58
- pyphyschemtools/survey.py +0 -449
- pyphyschemtools/sympyUtilities.py +9 -9
- pyphyschemtools/tools4AS.py +12 -8
- {pyphyschemtools-0.1.0.dist-info → pyphyschemtools-0.1.2.dist-info}/METADATA +2 -2
- {pyphyschemtools-0.1.0.dist-info → pyphyschemtools-0.1.2.dist-info}/RECORD +30 -20
- /pyphyschemtools/{icons-logos-banner → icons_logos_banner}/Logo_pyPhysChem_border.svg +0 -0
- /pyphyschemtools/{icons-logos-banner → icons_logos_banner}/__init__.py +0 -0
- /pyphyschemtools/{icons-logos-banner → icons_logos_banner}/logo.png +0 -0
- /pyphyschemtools/{icons-logos-banner → icons_logos_banner}/tools4pyPC_banner.png +0 -0
- /pyphyschemtools/{icons-logos-banner → icons_logos_banner}/tools4pyPC_banner.svg +0 -0
- {pyphyschemtools-0.1.0.dist-info → pyphyschemtools-0.1.2.dist-info}/WHEEL +0 -0
- {pyphyschemtools-0.1.0.dist-info → pyphyschemtools-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {pyphyschemtools-0.1.0.dist-info → pyphyschemtools-0.1.2.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
|