Skip to content

Commit 9657a69

Browse files
[DEV] ptable_table.json generate with unified interface (#4338)
* remove unused bond valence analysis data * remove unused ptable benchmark db file * fix var name * move periodic table related resources into a single directory * move new script too * restructure to expose the entry point * oxidation states from HTML to yaml * more verbose file name * rename base properties recording (need to drop other props) * yaml contain property name * more readable file name for physical constants * avoid duplicate key and add unit/reference * sort elements not alphabetically but atomic number * explicit null * drop Oxidation states from base recording * quick draft of yaml parser * refactor to parse single YAML each time for explicitness, won't be a lot of files * convert elemental property to per property format * drop all value as "no data" * reformat elemental properties * drop per-property default for now * drop shannon radii * explicit quote for unit with specific char * convert NIST ionization energies to yaml * drop explicit default for now * clarify expected YAML format * update NIST ionization energy link * clarify parser interface requirement * quick sketch of CSV parser * drop reference parsing (not needed for final JSON) for now * recover NIST ionization energy HTML for future reference * better var name for transfer, add warning on transform failure * mark backup reference private * better index column handling in csv * migrate ionic radii parser * allow passing unit to csv reader * avoid hard coding property base name * WIP: add property container * pre-commit auto-fixes * clean up property handler sketch * shannon radii to csv * quick draft of shannon radii parser * drop OH from shannon radii datasheet * clean up docstring after Property * clean up electron affinity getter * copy IUPAC ordering generator * pass reference when possible * save electron affinity to a local copy for stability * copy docstring for IUPAC ordering * check data block in yaml * use pymatgen unit * wrap IUPAC ordering to ElemPropertyValue, add YAML generator * update json generator to separate unit from value * sort YAML by atomic number * reposition docstring for visibility * completely drop per-value unit * quick clean up of elemental property yaml * reduce flow style * regenerate json * fix incorrect radii for Pd * abs path * also regenerate yaml * fix radii unit * avoid hard coding atomic mass unit * avoid confusing unit conversion in the middle of parser * avoid hard coding ionic radii unit * avoid conversion on the fly whenever possible * drop duplicate iupac_ordering * use empty tuple as default directly * avoid conversion on the fly * remove "about" from values * Revert "remove "about" from values" This reverts commit 8119fab. * Revert "avoid conversion on the fly" This reverts commit a188bc2. * remove using PT_UNIT for now * CHEERY PICK: drop unit for atomic mass NMR * CHERRY PICK: revert to export val + unit as str for now * CHERRY PICK: JSON generate a duplicate * CHERRY PICK: hold unit conversion to pmg unit for now * add JSON compare script * recover "Metallic radius" data * skip Metallic radius in comparison * ignore updated "Electron affinity" * skip Electrical resistivity in TODO * add oxidation state for D T isotopes * add Electron affinity for D * keep uncertain in elec affinity * use indent 4 * save the electron affinity wiki parser --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4a3d067 commit 9657a69

24 files changed

+26114
-9216
lines changed

dev_scripts/Shannon Radii.xlsx

-58.8 KB
Binary file not shown.

dev_scripts/bvparm2011

Lines changed: 0 additions & 1735 deletions
This file was deleted.

dev_scripts/electron_affinities.yaml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
Electron affinity:
2+
unit: eV
3+
reference: https://en.wikipedia.org/wiki/Electron_affinity_(data_page)
4+
data:
5+
H: 0.754195
6+
D: 0.75467
7+
He: -0.5
8+
Li: 0.618049
9+
Be: -0.5
10+
B: 0.279723
11+
C: 1.2621226
12+
N: -0.07
13+
O: 1.46111297
14+
F: 3.4011898
15+
Ne: -1.2
16+
Na: 0.547926
17+
Mg: -0.4
18+
Al: 0.43283
19+
Si: 1.3895212
20+
P: 0.746609
21+
S: 2.0771042
22+
Cl: 3.612725
23+
Ar: -1.0
24+
K: 0.501459
25+
Ca: 0.02455
26+
Sc: 0.17938
27+
Ti: 0.07554
28+
V: 0.52766
29+
Cr: 0.675928
30+
Mn: -0.5
31+
Fe: 0.153236
32+
Co: 0.662255
33+
Ni: 1.15716
34+
Cu: 1.23578
35+
Zn: -0.6
36+
Ga: 0.301166
37+
Ge: 1.2326764
38+
As: 0.804486
39+
Se: 2.0206047
40+
Br: 3.363588
41+
Kr: -1.0
42+
Rb: 0.485916
43+
Sr: 0.05206
44+
Y: 0.31129
45+
Zr: 0.43328
46+
Nb: 0.9174
47+
Mo: 0.74723
48+
Tc: 0.55
49+
Ru: 1.04627
50+
Rh: 1.14289
51+
Pd: 0.56214
52+
Ag: 1.30447
53+
Cd: -0.7
54+
In: 0.299
55+
Sn: 1.11207
56+
Sb: 1.047401
57+
Te: 1.970875
58+
I: 3.0590465
59+
Xe: -0.8
60+
Cs: 0.4715983
61+
Ba: 0.14462
62+
La: 0.557546
63+
Ce: 0.60016
64+
Pr: 0.10923
65+
Nd: 0.09749
66+
Pm: 0.129
67+
Sm: 0.162
68+
Eu: 0.116
69+
Gd: 0.212
70+
Tb: 0.13131
71+
Dy: 0.015
72+
Ho: 0.338
73+
Er: 0.312
74+
Tm: 1.029
75+
Yb: -0.02
76+
Lu: 0.2388
77+
Hf: 0.178
78+
Ta: 0.328859
79+
W: 0.8165
80+
Re: 0.060396
81+
Os: 1.077661
82+
Ir: 1.564057
83+
Pt: 2.1251
84+
Au: 2.30861
85+
Hg: -0.5
86+
Tl: 0.320053
87+
Pb: 0.356721
88+
Bi: 0.942362
89+
Po: 1.4
90+
At: 2.41578
91+
Rn: -0.7
92+
Fr: 0.486
93+
Ra: 0.1
94+
Ac: 0.35
95+
Th: 0.60769
96+
Pa: 0.55
97+
U: 0.31497
98+
Np: 0.48
99+
Pu: -0.5
100+
Am: 0.1
101+
Cm: 0.28
102+
Bk: -1.72
103+
Cf: -1.01
104+
Es: -0.3
105+
Fm: 0.35
106+
Md: 0.98
107+
No: -2.33
108+
Lr: -0.31
109+
Rg: 1.565
110+
Nh: 0.69
111+
Mc: 0.366
112+
Lv: 0.776
113+
Ts: 1.719
114+
Og: 0.08

dev_scripts/gen_pt_json.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)