tanabesugano 1.4.0__py3-none-any.whl → 1.4.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.
Potentially problematic release.
This version of tanabesugano might be problematic. Click here for more details.
- tanabesugano/__init__.py +2 -1
- tanabesugano/cmd.py +6 -16
- {tanabesugano-1.4.0.dist-info → tanabesugano-1.4.2.dist-info}/METADATA +42 -26
- {tanabesugano-1.4.0.dist-info → tanabesugano-1.4.2.dist-info}/RECORD +7 -7
- {tanabesugano-1.4.0.dist-info → tanabesugano-1.4.2.dist-info}/WHEEL +1 -1
- {tanabesugano-1.4.0.dist-info → tanabesugano-1.4.2.dist-info}/LICENSE +0 -0
- {tanabesugano-1.4.0.dist-info → tanabesugano-1.4.2.dist-info}/entry_points.txt +0 -0
tanabesugano/__init__.py
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"""tanabesugano: A Python package for Tanabe-Sugano diagrams."""
|
|
2
|
+
__version__ = "1.4.2"
|
tanabesugano/cmd.py
CHANGED
|
@@ -47,7 +47,6 @@ class CMDmain(object):
|
|
|
47
47
|
self.C = C
|
|
48
48
|
|
|
49
49
|
if slater:
|
|
50
|
-
|
|
51
50
|
self.B, self.C = tools.racah(B, C)
|
|
52
51
|
self.nroot = nroots
|
|
53
52
|
energy = np.linspace(0.0, self.Dq, nroots)
|
|
@@ -65,16 +64,15 @@ class CMDmain(object):
|
|
|
65
64
|
{"Energy": energy, "delta_B": energy / self.B, "10Dq": energy * 10.0}
|
|
66
65
|
)
|
|
67
66
|
self.title_TS = (
|
|
68
|
-
f"TS-diagram_d{self.d_count}_10Dq_{self.Dq * 10.0}_"
|
|
69
|
-
f"B_{self.B}_C_{self.C}"
|
|
67
|
+
f"TS-diagram_d{self.d_count}_10Dq_{int(self.Dq * 10.0)}_"
|
|
68
|
+
f"B_{int(self.B)}_C_{int(self.C)}"
|
|
70
69
|
)
|
|
71
70
|
self.title_DD = (
|
|
72
|
-
f"DD-energies_d{self.d_count}_10Dq_{self.Dq * 10.0}_"
|
|
73
|
-
f"B_{self.B}_C_{self.C}"
|
|
71
|
+
f"DD-energies_d{self.d_count}_10Dq_{int(self.Dq * 10.0)}_"
|
|
72
|
+
f"B_{int(self.B)}_C_{int(self.C)}"
|
|
74
73
|
)
|
|
75
74
|
|
|
76
75
|
def plot(self) -> None:
|
|
77
|
-
|
|
78
76
|
# Figure one for classical Tanabe-Sugano-Diagram with B-dependency
|
|
79
77
|
plt.figure(1)
|
|
80
78
|
|
|
@@ -107,7 +105,6 @@ class CMDmain(object):
|
|
|
107
105
|
plt.xlabel(arg2)
|
|
108
106
|
|
|
109
107
|
def savetxt(self) -> None:
|
|
110
|
-
|
|
111
108
|
pd.concat(
|
|
112
109
|
[
|
|
113
110
|
self.df["delta_B"],
|
|
@@ -195,37 +192,30 @@ class CMDmain(object):
|
|
|
195
192
|
Extracting the atomic-termsymbols for a specific dq depending on the oxidation state
|
|
196
193
|
"""
|
|
197
194
|
if self.d_count == 2: # d2
|
|
198
|
-
|
|
199
195
|
states = matrices.d2(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
200
196
|
self.ts_print(states, dq_ci=dq_ci)
|
|
201
197
|
|
|
202
198
|
elif self.d_count == 3: # d3
|
|
203
|
-
|
|
204
199
|
states = matrices.d3(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
205
200
|
self.ts_print(states, dq_ci=dq_ci)
|
|
206
201
|
|
|
207
202
|
elif self.d_count == 4: # d4
|
|
208
|
-
|
|
209
203
|
states = matrices.d4(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
210
204
|
self.ts_print(states, dq_ci=dq_ci)
|
|
211
205
|
|
|
212
206
|
elif self.d_count == 5: # d5
|
|
213
|
-
|
|
214
207
|
states = matrices.d5(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
215
208
|
self.ts_print(states, dq_ci=dq_ci)
|
|
216
209
|
|
|
217
210
|
elif self.d_count == 6: # d6
|
|
218
|
-
|
|
219
211
|
states = matrices.d6(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
220
212
|
self.ts_print(states, dq_ci=dq_ci)
|
|
221
213
|
|
|
222
214
|
elif self.d_count == 7: # d7
|
|
223
|
-
|
|
224
215
|
states = matrices.d7(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
225
216
|
self.ts_print(states, dq_ci=dq_ci)
|
|
226
217
|
|
|
227
218
|
elif self.d_count == 8: # d8
|
|
228
|
-
|
|
229
219
|
states = matrices.d8(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
230
220
|
self.ts_print(states, dq_ci=dq_ci)
|
|
231
221
|
|
|
@@ -296,8 +286,8 @@ class CMDmain(object):
|
|
|
296
286
|
_template = "plotly_white"
|
|
297
287
|
_size = dict(
|
|
298
288
|
autosize=False,
|
|
299
|
-
width=
|
|
300
|
-
height=
|
|
289
|
+
width=250,
|
|
290
|
+
height=250,
|
|
301
291
|
)
|
|
302
292
|
color_discrete_sequence = [
|
|
303
293
|
px.colors.qualitative.Light24[int(i[0]) - 1] for i in _col
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tanabesugano
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: A python-solver for Tanabe-Sugano and Energy-Correlation diagrams
|
|
5
5
|
Home-page: https://pypi.org/project/TanabeSugano
|
|
6
6
|
License: MIT
|
|
@@ -22,11 +22,8 @@ Classifier: Programming Language :: Python :: 3
|
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
24
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
-
Classifier: Programming Language :: Python :: 3
|
|
26
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
27
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
26
|
Classifier: Programming Language :: Python :: 3.8
|
|
29
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
30
27
|
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
31
28
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
32
29
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
@@ -35,19 +32,23 @@ Classifier: Topic :: Utilities
|
|
|
35
32
|
Provides-Extra: plotly
|
|
36
33
|
Requires-Dist: matplotlib (>=3.4.2,<4.0.0)
|
|
37
34
|
Requires-Dist: numpy (>=1.20.3,<2.0.0)
|
|
38
|
-
Requires-Dist: pandas (>=1.2.4,<
|
|
35
|
+
Requires-Dist: pandas (>=1.2.4,<3.0.0)
|
|
39
36
|
Requires-Dist: plotly (>=5.13.1,<6.0.0) ; extra == "plotly"
|
|
40
|
-
Requires-Dist: prettytable (>=2.1
|
|
37
|
+
Requires-Dist: prettytable (>=2.1,<4.0)
|
|
41
38
|
Project-URL: Repository, https://github.com/Anselmoo/TanabeSugano
|
|
42
39
|
Description-Content-Type: text/markdown
|
|
43
40
|
|
|
44
|
-
[](https://github.com/Anselmoo/TanabeSugano/actions/workflows/python-package.yml)
|
|
42
|
+
[](https://python-poetry.org/)
|
|
45
43
|
[](https://www.codefactor.io/repository/github/anselmoo/tanabesugano)
|
|
46
|
-
[](https://zenodo.org/badge/latestdoi/206847682)
|
|
47
45
|
[](https://github.com/Anselmoo/TanabeSugano/blob/master/LICENSE)
|
|
48
46
|
[](https://github.com/Anselmoo/TanabeSugano/releases)
|
|
49
47
|
[](https://pypi.org/project/TanabeSugano/)
|
|
50
48
|
[](https://pypi.org/project/TanabeSugano/)
|
|
49
|
+
[](https://pepy.tech/project/tanabesugano)
|
|
50
|
+
[](https://colab.research.google.com/github/Anselmoo/TanabeSugano/blob/master/Tanabe_Sugano.ipynb)
|
|
51
|
+
|
|
51
52
|
|
|
52
53
|
# TanabeSugano
|
|
53
54
|
A python-based Eigensolver for Tanabe-Sugano- & Energy-Correlation-Diagrams based on the original three proposed studies of *Yukito Tanabe and Satoru Sugano* for d<sup>2</sup>-d<sup>8</sup> transition metal ions:
|
|
@@ -77,26 +78,30 @@ It provides:
|
|
|
77
78
|
|
|
78
79
|
- Tanabe-Sugano- & Energy-Correlation-Diagrams plotted via `matplotlib`
|
|
79
80
|
- Tanabe-Sugano- & Energy-Correlation-Diagrams exported as `txt`-file
|
|
80
|
-
- Atomic-Termsymbols and their
|
|
81
|
-
- Set-up
|
|
81
|
+
- Atomic-Termsymbols and their **Eigen-Energies** for a given 10Dq and oxidation state as exported table via `prettytable`
|
|
82
|
+
- Set-up individually **C/B**-ratios
|
|
82
83
|
- Working with Slater-Condon-Parameters **F<sup>2</sup>, F<sup>4</sup>** instead of Racah-Parameters **B, C**
|
|
84
|
+
- Export of the **Tanabe-Sugano-Diagram** as a `html`-file via `plotly` for interactive use
|
|
83
85
|
|
|
84
86
|
The **TanabeSugano**-application can be installed and run:
|
|
85
87
|
|
|
86
88
|
```console
|
|
87
|
-
#via PyPi
|
|
89
|
+
# via PyPi
|
|
88
90
|
pip install TanabeSugano
|
|
89
91
|
|
|
90
|
-
#via pip+git
|
|
92
|
+
# via pip+git
|
|
91
93
|
pip git+https://github.com/Anselmoo/TanabeSugano.git
|
|
92
94
|
|
|
93
|
-
#locally
|
|
95
|
+
# locally
|
|
94
96
|
python setup.py install
|
|
95
97
|
tanabesugano
|
|
98
|
+
|
|
99
|
+
# for plotly-export
|
|
100
|
+
pip install TanabeSugano[plotly]
|
|
96
101
|
```
|
|
97
102
|
|
|
98
103
|
|
|
99
|
-
The options
|
|
104
|
+
The options for the **TanabeSugano**-application are:
|
|
100
105
|
|
|
101
106
|
```console
|
|
102
107
|
tanabesugano --help
|
|
@@ -105,18 +110,29 @@ The options of the **TanabeSugano**-application are:
|
|
|
105
110
|
[-ndisp] [-ntxt] [-slater]
|
|
106
111
|
|
|
107
112
|
optional arguments:
|
|
108
|
-
-h, --help
|
|
109
|
-
-d D
|
|
110
|
-
-Dq DQ
|
|
111
|
-
-cut CUT
|
|
112
|
-
-B B B
|
|
113
|
-
-C C C
|
|
114
|
-
-n N
|
|
115
|
-
-ndisp
|
|
116
|
-
-ntxt
|
|
117
|
-
-slater
|
|
113
|
+
-h, --help show this help message and exit
|
|
114
|
+
-d D Number of unpaired electrons (default d5)
|
|
115
|
+
-Dq DQ 10Dq crystal field splitting (default 10Dq = 8065 cm-)
|
|
116
|
+
-cut CUT 10Dq crystal field splitting (default 10Dq = 8065 cm-)
|
|
117
|
+
-B B B Racah Parameter B and the corresponding reduction (default B = 860 cm- * 1.)
|
|
118
|
+
-C C C Racah Parameter C and the corresponding reduction (default C = 4.477*860 cm- * 1.)
|
|
119
|
+
-n N Number of roots (default nroots = 500)
|
|
120
|
+
-ndisp Plot TS-diagram (default = on)
|
|
121
|
+
-ntxt Save TS-diagram and dd energies (default = on)
|
|
122
|
+
-slater Using Slater-Condon F2,F4 parameter instead Racah-Parameter B,C (default = off)
|
|
123
|
+
-v, --version Print version number and exit
|
|
124
|
+
-html Save TS-diagram and dd energies (default = on)
|
|
118
125
|
```
|
|
119
126
|
|
|
120
|
-
**Reference-Example** for d<sup>6</sup> for *B = 860 cm<sup>-</sup>* and *C = 3850 cm<sup>-</sup
|
|
127
|
+
**Reference-Example** for d<sup>6</sup> for *B = 860 cm<sup>-</sup>* and *C = 3850 cm<sup>-</sup>* as regular `matplotlib`-plot:
|
|
121
128
|

|
|
122
129
|
|
|
130
|
+
|
|
131
|
+
**Reference-Example** for d<sup>6</sup> for *F<sup>2</sup> = 1065 cm<sup>-</sup>* and *F<sup>4</sup> = 5120 cm<sup>-</sup>* as interactive `plotly`-plot:
|
|
132
|
+
|
|
133
|
+

|
|
134
|
+
|
|
135
|
+
## Test the TS-diagrams interactively in Google Colab
|
|
136
|
+
|
|
137
|
+
[](https://colab.research.google.com/github/Anselmoo/TanabeSugano/blob/master/Tanabe_Sugano.ipynb)
|
|
138
|
+
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
LICENSE,sha256=_K3bdxWFLtrw24lxJa1SGXvicIBKn2a467v7uwyhZ6E,1068
|
|
2
|
-
tanabesugano/__init__.py,sha256=
|
|
2
|
+
tanabesugano/__init__.py,sha256=bEVGLECdgoci9yV2Y1UFxDksfEFVcT5t41wq3LVwXKM,87
|
|
3
3
|
tanabesugano/batch.py,sha256=ECc8kIHt3lyBCBmh_lAEpa3L_T1v_2U70vJ7lxf7-EU,5626
|
|
4
|
-
tanabesugano/cmd.py,sha256=
|
|
4
|
+
tanabesugano/cmd.py,sha256=lbj4zAjDdk-CQJrX9dgJYCagPsNN5jSEsnKTzH3QSSo,14141
|
|
5
5
|
tanabesugano/matrices.py,sha256=xyuQkvd1x_69nbbKWnEVmOgQ4UOZg0mTpBoVG9fcFRo,48709
|
|
6
6
|
tanabesugano/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
tanabesugano/test/test_batch.py,sha256=TBJ90ns82XoPrC6mDM2fZuJiw8bEzoxaim1EUJEv_Ec,927
|
|
8
8
|
tanabesugano/test/test_front.py,sha256=9dmDHidgXCHHTnG7Mss6qp2qpyr2E3l8qXNUlw6doow,318
|
|
9
9
|
tanabesugano/test/test_num.py,sha256=KXNF6yJWQEv1uIc0RAfQ2MqeRwf-CHfaTH-fFhS-d2M,891
|
|
10
10
|
tanabesugano/tools.py,sha256=m0D5IZ6XGyjNVziLL7fCQgtMtWSq1m4_XURJjmzGBkU,798
|
|
11
|
-
tanabesugano-1.4.
|
|
12
|
-
tanabesugano-1.4.
|
|
13
|
-
tanabesugano-1.4.
|
|
14
|
-
tanabesugano-1.4.
|
|
15
|
-
tanabesugano-1.4.
|
|
11
|
+
tanabesugano-1.4.2.dist-info/LICENSE,sha256=_K3bdxWFLtrw24lxJa1SGXvicIBKn2a467v7uwyhZ6E,1068
|
|
12
|
+
tanabesugano-1.4.2.dist-info/METADATA,sha256=KSZzRZ0k5YnJJ6Ni7jZml0OBfb-HhdkUWZrM3NYJrqw,6771
|
|
13
|
+
tanabesugano-1.4.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
14
|
+
tanabesugano-1.4.2.dist-info/entry_points.txt,sha256=xcm1HBKYnpfhfLPKBj_8wENPGviAy0_yx1RCrNcvOV4,58
|
|
15
|
+
tanabesugano-1.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|