nomspectra 1.0.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.
- nomspectra/__init__.py +0 -0
- nomspectra/__main__.py +9 -0
- nomspectra/__version__.py +1 -0
- nomspectra/brutto.py +478 -0
- nomspectra/diff.py +353 -0
- nomspectra/draw.py +532 -0
- nomspectra/gui.py +1397 -0
- nomspectra/gui_design.py +1086 -0
- nomspectra/gui_dialog.py +86 -0
- nomspectra/metadata.py +113 -0
- nomspectra/recal.py +453 -0
- nomspectra/spectra.py +365 -0
- nomspectra/spectrum.py +1813 -0
- nomspectra-1.0.1.dist-info/METADATA +107 -0
- nomspectra-1.0.1.dist-info/RECORD +18 -0
- nomspectra-1.0.1.dist-info/WHEEL +5 -0
- nomspectra-1.0.1.dist-info/licenses/LICENSE.txt +674 -0
- nomspectra-1.0.1.dist-info/top_level.txt +1 -0
nomspectra/__init__.py
ADDED
|
File without changes
|
nomspectra/__main__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.0.1'
|
nomspectra/brutto.py
ADDED
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
# Copyright 2022 Volikov Alexander <ab.volikov@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of nomspectra.
|
|
4
|
+
#
|
|
5
|
+
# nomspectra is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
# (at your option) any later version.
|
|
9
|
+
#
|
|
10
|
+
# nomspectra is distributed in the hope that it will be useful,
|
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
# GNU General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU General Public License
|
|
16
|
+
# along with nomspectra. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
from typing import Sequence, Optional
|
|
19
|
+
from functools import wraps
|
|
20
|
+
import numpy as np
|
|
21
|
+
import pandas as pd
|
|
22
|
+
import copy
|
|
23
|
+
from functools import lru_cache
|
|
24
|
+
from frozendict import frozendict
|
|
25
|
+
|
|
26
|
+
def _freeze(func):
|
|
27
|
+
"""
|
|
28
|
+
freeze dict in func
|
|
29
|
+
"""
|
|
30
|
+
@wraps(func)
|
|
31
|
+
def wrapped(*args, **kwargs):
|
|
32
|
+
args = tuple([frozendict(arg) if isinstance(arg, dict) else arg for arg in args])
|
|
33
|
+
kwargs = {k: frozendict(v) if isinstance(v, dict) else v for k, v in kwargs.items()}
|
|
34
|
+
return func(*args, **kwargs)
|
|
35
|
+
return wrapped
|
|
36
|
+
|
|
37
|
+
@_freeze
|
|
38
|
+
@lru_cache(maxsize=None)
|
|
39
|
+
def brutto_gen(elems: Optional[dict] = None, rules: bool = True) -> pd.DataFrame:
|
|
40
|
+
"""
|
|
41
|
+
Generete brutto formula dataframe
|
|
42
|
+
|
|
43
|
+
Parameters
|
|
44
|
+
----------
|
|
45
|
+
elems: dict
|
|
46
|
+
Dictonary with elements and their range for generate brutto table
|
|
47
|
+
Example: {'C':(1,60),'O_18':(0,3)} - content of carbon (main isotope) from 1 to 59,
|
|
48
|
+
conent of isotope 18 oxygen from 0 to 2.
|
|
49
|
+
By default it is {'C':(4, 51),'H':(4, 101),'O':(0,26), 'N':(0,4), 'S':(0,3)}
|
|
50
|
+
rules: bool
|
|
51
|
+
Rules: 0.25<H/C<2.2, O/C < 1, nitogen parity, DBE-O <= 10.
|
|
52
|
+
By default it is on, but for tmds should be off
|
|
53
|
+
|
|
54
|
+
Returns
|
|
55
|
+
-------
|
|
56
|
+
pandas Dataframe
|
|
57
|
+
Dataframe with masses for elements content
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
if elems is None:
|
|
61
|
+
elems = {'C':(4, 51),'H':(4, 101),'O':(0,26), 'N':(0,4), 'S':(0,3)}
|
|
62
|
+
|
|
63
|
+
#load elements table. Generatete in mass folder
|
|
64
|
+
elems_mass_table = elements_table()
|
|
65
|
+
elems_arr = []
|
|
66
|
+
elems_dict = {}
|
|
67
|
+
for el in elems:
|
|
68
|
+
elems_arr.append(np.array(range(elems[el][0],elems[el][1])))
|
|
69
|
+
if '_' not in el:
|
|
70
|
+
temp = elems_mass_table.loc[elems_mass_table['element']==el].sort_values(by='abundance',ascending=False).reset_index(drop=True)
|
|
71
|
+
elems_dict[el] = temp.loc[0,'mass']
|
|
72
|
+
else:
|
|
73
|
+
temp = elems_mass_table.loc[elems_mass_table['element_isotop']==el].reset_index(drop=True)
|
|
74
|
+
elems_dict[el] = temp.loc[0,'mass']
|
|
75
|
+
|
|
76
|
+
#generate grid with all possible combination of elements in their ranges
|
|
77
|
+
t = np.array(np.meshgrid(*elems_arr)).T.reshape(-1,len(elems_arr))
|
|
78
|
+
gdf = pd.DataFrame(t,columns=list(elems_dict.keys()))
|
|
79
|
+
#do rules H/C, O/C, and parity
|
|
80
|
+
if rules:
|
|
81
|
+
|
|
82
|
+
temp = copy.deepcopy(gdf)
|
|
83
|
+
temp=_merge_isotopes(temp)
|
|
84
|
+
|
|
85
|
+
if 'C' not in temp or 'H' not in temp or 'O' not in temp:
|
|
86
|
+
raise Exception('For applying rules in brutto must be CHO elements or their isotopes')
|
|
87
|
+
|
|
88
|
+
temp['H/C'] = temp['H']/temp['C']
|
|
89
|
+
temp['O/C'] = temp['O']/temp['C']
|
|
90
|
+
gdf = gdf.loc[(temp['H/C'] < 2.2) & (temp['H/C'] > 0.25) & (temp['O/C'] < 1)]
|
|
91
|
+
|
|
92
|
+
if 'N' not in temp:
|
|
93
|
+
temp['N'] = 0
|
|
94
|
+
|
|
95
|
+
temp['DBE-O'] = 1.0 + temp["C"] - 0.5 * temp["H"] + 0.5 * temp['N'] - temp['O']
|
|
96
|
+
gdf = gdf.loc[temp['DBE-O'] <= 10]
|
|
97
|
+
|
|
98
|
+
if 'N' in temp:
|
|
99
|
+
temp['parity'] = (temp['H'] + temp['N'])%2
|
|
100
|
+
gdf = gdf.loc[temp['parity']==0]
|
|
101
|
+
|
|
102
|
+
#calculate mass
|
|
103
|
+
masses = np.array(list(elems_dict.values()))
|
|
104
|
+
gdf['mass'] = gdf.multiply(masses).sum(axis=1)
|
|
105
|
+
gdf['mass'] = np.round(gdf['mass'], 6)
|
|
106
|
+
|
|
107
|
+
gdf = gdf.sort_values("mass").reset_index(drop=True)
|
|
108
|
+
|
|
109
|
+
return gdf
|
|
110
|
+
|
|
111
|
+
def _merge_isotopes(gdf: pd.DataFrame) -> pd.DataFrame:
|
|
112
|
+
"""
|
|
113
|
+
All isotopes will be merged and title as main.
|
|
114
|
+
|
|
115
|
+
Return
|
|
116
|
+
------
|
|
117
|
+
pandas Dataframe
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
for el in gdf:
|
|
121
|
+
res = el.split('_')
|
|
122
|
+
if len(res) == 2:
|
|
123
|
+
if res[0] not in gdf:
|
|
124
|
+
gdf[res[0]] = 0
|
|
125
|
+
gdf[res[0]] = gdf[res[0]] + gdf[el]
|
|
126
|
+
gdf = gdf.drop(columns=[el])
|
|
127
|
+
|
|
128
|
+
return gdf
|
|
129
|
+
|
|
130
|
+
def get_elements_masses(elems: Sequence[str]) -> np.array :
|
|
131
|
+
"""
|
|
132
|
+
Get elements masses from list
|
|
133
|
+
|
|
134
|
+
Parameters
|
|
135
|
+
----------
|
|
136
|
+
elems: Sequence[str]
|
|
137
|
+
List of elements. Example: ['C', 'H', 'N', 'C_13', 'O']
|
|
138
|
+
|
|
139
|
+
Return
|
|
140
|
+
------
|
|
141
|
+
numpy array
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
elements = elements_table()
|
|
145
|
+
elems_masses = []
|
|
146
|
+
|
|
147
|
+
for el in elems:
|
|
148
|
+
if '_' not in el:
|
|
149
|
+
temp = elements.loc[elements['element']==el].sort_values(by='abundance',ascending=False).reset_index(drop=True)
|
|
150
|
+
elems_masses.append(temp.loc[0,'mass'])
|
|
151
|
+
else:
|
|
152
|
+
temp = elements.loc[elements['element_isotop']==el].reset_index(drop=True)
|
|
153
|
+
elems_masses.append(temp.loc[0,'mass'])
|
|
154
|
+
|
|
155
|
+
return np.array(elems_masses)
|
|
156
|
+
|
|
157
|
+
def gen_from_brutto(table: pd.DataFrame) -> pd.DataFrame:
|
|
158
|
+
"""
|
|
159
|
+
Generate mass from brutto table
|
|
160
|
+
|
|
161
|
+
Parameters
|
|
162
|
+
----------
|
|
163
|
+
table: pandas Dataframe
|
|
164
|
+
table with elemnt contnent
|
|
165
|
+
|
|
166
|
+
Return
|
|
167
|
+
------
|
|
168
|
+
pandas DataFrame
|
|
169
|
+
Dataframe with elements and masses
|
|
170
|
+
"""
|
|
171
|
+
masses = get_elements_masses(table.columns)
|
|
172
|
+
|
|
173
|
+
table["calc_mass"] = table.multiply(masses).sum(axis=1)
|
|
174
|
+
table["calc_mass"] = np.round(table["calc_mass"], 6)
|
|
175
|
+
table.loc[table["calc_mass"] == 0, "calc_mass"] = np.nan
|
|
176
|
+
|
|
177
|
+
return table
|
|
178
|
+
|
|
179
|
+
def elements_table() -> pd.DataFrame:
|
|
180
|
+
"""
|
|
181
|
+
Table with exact mass of element and their isotop abundance
|
|
182
|
+
|
|
183
|
+
Return
|
|
184
|
+
------
|
|
185
|
+
Pandas DataFrame
|
|
186
|
+
Dataframe with exact mass of element and their isotop abundance
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
return pd.DataFrame(
|
|
190
|
+
columns = ['element', 'mass', 'abundance', 'isotop', 'element_isotop'],
|
|
191
|
+
data = [["Al", 26.981538, 100.0, 27, "Al_27"],
|
|
192
|
+
["Sb", 120.903818, 57.21, 121, "Sb_121"],
|
|
193
|
+
["Sb", 122.904216, 42.79, 123, "Sb_123"],
|
|
194
|
+
["Ar", 35.967546, 0.3365, 36, "Ar_36"],
|
|
195
|
+
["Ar", 37.962732, 0.0632, 38, "Ar_38"],
|
|
196
|
+
["Ar", 39.962383, 99.6003, 40, "Ar_40"],
|
|
197
|
+
["As", 74.921596, 100.0, 75, "As_75"],
|
|
198
|
+
["Ba", 129.90631, 0.106, 130, "Ba_130"],
|
|
199
|
+
["Ba", 131.905056, 0.101, 132, "Ba_132"],
|
|
200
|
+
["Ba", 133.904503, 2.417, 134, "Ba_134"],
|
|
201
|
+
["Ba", 134.905683, 6.592, 135, "Ba_135"],
|
|
202
|
+
["Ba", 135.90457, 7.854, 136, "Ba_136"],
|
|
203
|
+
["Ba", 136.905821, 11.232, 137, "Ba_137"],
|
|
204
|
+
["Ba", 137.905241, 71.698, 138, "Ba_138"],
|
|
205
|
+
["Be", 9.012182, 100.0, 9, "Be_9"],
|
|
206
|
+
["Bi", 208.980383, 100.0, 209, "Bi_209"],
|
|
207
|
+
["B", 10.012937, 19.9, 10, "B_10"],
|
|
208
|
+
["B", 11.009305, 80.1, 11, "B_11"],
|
|
209
|
+
["Br", 78.918338, 50.69, 79, "Br_79"],
|
|
210
|
+
["Br", 80.916291, 49.31, 81, "Br_81"],
|
|
211
|
+
["Cd", 105.906458, 1.25, 106, "Cd_106"],
|
|
212
|
+
["Cd", 107.904183, 0.89, 108, "Cd_108"],
|
|
213
|
+
["Cd", 109.903006, 12.49, 110, "Cd_110"],
|
|
214
|
+
["Cd", 110.904182, 12.8, 111, "Cd_111"],
|
|
215
|
+
["Cd", 111.902757, 24.13, 112, "Cd_112"],
|
|
216
|
+
["Cd", 112.904401, 12.22, 113, "Cd_113"],
|
|
217
|
+
["Cd", 113.903358, 28.73, 114, "Cd_114"],
|
|
218
|
+
["Cd", 115.904755, 7.49, 116, "Cd_116"],
|
|
219
|
+
["Ca", 39.962591, 96.941, 40, "Ca_40"],
|
|
220
|
+
["Ca", 41.958618, 0.647, 42, "Ca_42"],
|
|
221
|
+
["Ca", 42.958767, 0.135, 43, "Ca_43"],
|
|
222
|
+
["Ca", 43.955481, 2.086, 44, "Ca_44"],
|
|
223
|
+
["Ca", 45.953693, 0.004, 46, "Ca_46"],
|
|
224
|
+
["Ca", 47.952534, 0.187, 48, "Ca_48"],
|
|
225
|
+
["C", 12.0, 98.93, 12, "C_12"],
|
|
226
|
+
["C", 13.003355, 1.07, 13, "C_13"],
|
|
227
|
+
["Ce", 135.907144, 0.185, 136, "Ce_136"],
|
|
228
|
+
["Ce", 137.905986, 0.251, 138, "Ce_138"],
|
|
229
|
+
["Ce", 139.905434, 88.45, 140, "Ce_140"],
|
|
230
|
+
["Ce", 141.90924, 11.114, 142, "Ce_142"],
|
|
231
|
+
["Cs", 132.905447, 100.0, 133, "Cs_133"],
|
|
232
|
+
["Cl", 34.968853, 75.78, 35, "Cl_35"],
|
|
233
|
+
["Cl", 36.965903, 24.22, 37, "Cl_37"],
|
|
234
|
+
["Cr", 49.94605, 4.345, 50, "Cr_50"],
|
|
235
|
+
["Cr", 51.940512, 83.789, 52, "Cr_52"],
|
|
236
|
+
["Cr", 52.940654, 9.501, 53, "Cr_53"],
|
|
237
|
+
["Cr", 53.938885, 2.365, 54, "Cr_54"],
|
|
238
|
+
["Co", 58.9332, 100.0, 59, "Co_59"],
|
|
239
|
+
["Cu", 62.929601, 69.17, 63, "Cu_63"],
|
|
240
|
+
["Cu", 64.927794, 30.83, 65, "Cu_65"],
|
|
241
|
+
["Dy", 155.924278, 0.06, 156, "Dy_156"],
|
|
242
|
+
["Dy", 157.924405, 0.1, 158, "Dy_158"],
|
|
243
|
+
["Dy", 159.925194, 2.34, 160, "Dy_160"],
|
|
244
|
+
["Dy", 160.92693, 18.91, 161, "Dy_161"],
|
|
245
|
+
["Dy", 161.926795, 25.51, 162, "Dy_162"],
|
|
246
|
+
["Dy", 162.928728, 24.9, 163, "Dy_163"],
|
|
247
|
+
["Dy", 163.929171, 28.18, 164, "Dy_164"],
|
|
248
|
+
["Er", 161.928775, 0.14, 162, "Er_162"],
|
|
249
|
+
["Er", 163.929197, 1.61, 164, "Er_164"],
|
|
250
|
+
["Er", 165.93029, 33.61, 166, "Er_166"],
|
|
251
|
+
["Er", 166.932045, 22.93, 167, "Er_167"],
|
|
252
|
+
["Er", 167.932368, 26.78, 168, "Er_168"],
|
|
253
|
+
["Er", 169.93546, 14.93, 170, "Er_170"],
|
|
254
|
+
["Eu", 150.919846, 47.81, 151, "Eu_151"],
|
|
255
|
+
["Eu", 152.921226, 52.19, 153, "Eu_153"],
|
|
256
|
+
["F", 18.998403, 100.0, 19, "F_19"],
|
|
257
|
+
["Ga", 68.925581, 60.108, 69, "Ga_69"],
|
|
258
|
+
["Ga", 70.924705, 39.892, 71, "Ga_71"],
|
|
259
|
+
["Gd", 151.919788, 0.2, 152, "Gd_152"],
|
|
260
|
+
["Gd", 153.920862, 2.18, 154, "Gd_154"],
|
|
261
|
+
["Gd", 154.822619, 14.8, 155, "Gd_155"],
|
|
262
|
+
["Gd", 155.92212, 20.47, 156, "Gd_156"],
|
|
263
|
+
["Gd", 156.923957, 15.65, 157, "Gd_157"],
|
|
264
|
+
["Gd", 157.924101, 24.84, 158, "Gd_158"],
|
|
265
|
+
["Gd", 159.927051, 21.86, 160, "Gd_160"],
|
|
266
|
+
["Ge", 69.92425, 20.84, 70, "Ge_70"],
|
|
267
|
+
["Ge", 71.922076, 27.54, 72, "Ge_72"],
|
|
268
|
+
["Ge", 72.923459, 7.73, 73, "Ge_73"],
|
|
269
|
+
["Ge", 73.921178, 36.5, 74, "Ge_74"],
|
|
270
|
+
["Ge", 75.921403, 7.61, 76, "Ge_76"],
|
|
271
|
+
["Au", 196.966552, 100.0, 197, "Au_197"],
|
|
272
|
+
["Hf", 173.94004, 0.16, 174, "Hf_174"],
|
|
273
|
+
["Hf", 175.941402, 5.26, 176, "Hf_176"],
|
|
274
|
+
["Hf", 176.94322, 18.6, 177, "Hf_177"],
|
|
275
|
+
["Hf", 177.943698, 27.28, 178, "Hf_178"],
|
|
276
|
+
["Hf", 178.945815, 13.62, 179, "Hf_179"],
|
|
277
|
+
["Hf", 179.946549, 35.08, 180, "Hf_180"],
|
|
278
|
+
["He", 3.016029, 0.000137, 3, "He_3"],
|
|
279
|
+
["He", 4.002603, 99.999863, 4, "He_4"],
|
|
280
|
+
["Ho", 164.930319, 100.0, 165, "Ho_165"],
|
|
281
|
+
["H", 1.007825, 99.9885, 1, "H_1"],
|
|
282
|
+
["H", 2.014102, 0.115, 2, "H_2"],
|
|
283
|
+
["In", 112.904061, 4.29, 113, "In_113"],
|
|
284
|
+
["In", 114.903878, 95.71, 115, "In_115"],
|
|
285
|
+
["I", 126.904468, 100.0, 127, "I_127"],
|
|
286
|
+
["Ir", 190.960591, 37.3, 191, "Ir_191"],
|
|
287
|
+
["Ir", 192.962924, 62.7, 193, "Ir_193"],
|
|
288
|
+
["Fe", 53.939615, 5.845, 54, "Fe_54"],
|
|
289
|
+
["Fe", 55.934942, 91.754, 56, "Fe_56"],
|
|
290
|
+
["Fe", 56.935399, 2.119, 57, "Fe_57"],
|
|
291
|
+
["Fe", 57.93328, 0.282, 58, "Fe_58"],
|
|
292
|
+
["Kr", 77.920386, 0.35, 78, "Kr_78"],
|
|
293
|
+
["Kr", 79.916378, 2.28, 80, "Kr_80"],
|
|
294
|
+
["Kr", 81.913485, 11.58, 82, "Kr_82"],
|
|
295
|
+
["Kr", 82.914136, 11.49, 83, "Kr_83"],
|
|
296
|
+
["Kr", 83.911507, 57.0, 84, "Kr_84"],
|
|
297
|
+
["Kr", 85.91061, 17.3, 86, "Kr_86"],
|
|
298
|
+
["La", 137.907107, 0.09, 138, "La_138"],
|
|
299
|
+
["La", 138.906348, 99.91, 139, "La_139"],
|
|
300
|
+
["Pb", 203.973029, 1.4, 204, "Pb_204"],
|
|
301
|
+
["Pb", 205.974449, 24.1, 206, "Pb_206"],
|
|
302
|
+
["Pb", 206.975881, 22.1, 207, "Pb_207"],
|
|
303
|
+
["Pb", 207.976636, 52.4, 208, "Pb_208"],
|
|
304
|
+
["Li", 6.015122, 7.59, 6, "Li_6"],
|
|
305
|
+
["Li", 7.016004, 92.41, 7, "Li_7"],
|
|
306
|
+
["Lu", 174.940768, 97.41, 175, "Lu_175"],
|
|
307
|
+
["Lu", 175.942682, 2.59, 176, "Lu_176"],
|
|
308
|
+
["Mg", 23.985042, 78.99, 24, "Mg_24"],
|
|
309
|
+
["Mg", 24.985837, 10.0, 25, "Mg_25"],
|
|
310
|
+
["Mg", 25.982593, 11.01, 26, "Mg_26"],
|
|
311
|
+
["Mn", 54.93805, 100.0, 55, "Mn_55"],
|
|
312
|
+
["Hg", 195.965815, 0.15, 196, "Hg_196"],
|
|
313
|
+
["Hg", 197.966752, 9.97, 198, "Hg_198"],
|
|
314
|
+
["Hg", 198.968262, 16.87, 199, "Hg_199"],
|
|
315
|
+
["Hg", 199.968309, 23.1, 200, "Hg_200"],
|
|
316
|
+
["Hg", 200.970285, 13.18, 201, "Hg_201"],
|
|
317
|
+
["Hg", 201.970626, 29.86, 202, "Hg_202"],
|
|
318
|
+
["Hg", 203.973476, 6.87, 204, "Hg_204"],
|
|
319
|
+
["Mo", 91.90681, 14.84, 92, "Mo_92"],
|
|
320
|
+
["Mo", 93.905088, 9.25, 94, "Mo_94"],
|
|
321
|
+
["Mo", 94.905841, 15.92, 95, "Mo_95"],
|
|
322
|
+
["Mo", 95.904679, 16.68, 96, "Mo_96"],
|
|
323
|
+
["Mo", 96.906021, 9.55, 97, "Mo_97"],
|
|
324
|
+
["Mo", 97.905408, 24.13, 98, "Mo_98"],
|
|
325
|
+
["Mo", 99.907477, 9.63, 100, "Mo_100"],
|
|
326
|
+
["Nd", 141.907719, 27.2, 142, "Nd_142"],
|
|
327
|
+
["Nd", 142.90981, 12.2, 143, "Nd_143"],
|
|
328
|
+
["Nd", 143.910083, 23.8, 144, "Nd_144"],
|
|
329
|
+
["Nd", 144.912569, 8.3, 145, "Nd_145"],
|
|
330
|
+
["Nd", 145.913112, 17.2, 146, "Nd_146"],
|
|
331
|
+
["Nd", 147.916889, 5.7, 148, "Nd_148"],
|
|
332
|
+
["Nd", 149.920887, 5.6, 150, "Nd_150"],
|
|
333
|
+
["Ne", 19.99244, 90.48, 20, "Ne_20"],
|
|
334
|
+
["Ne", 20.993847, 0.27, 21, "Ne_21"],
|
|
335
|
+
["Ne", 21.991386, 9.25, 22, "Ne_22"],
|
|
336
|
+
["Ni", 57.935348, 68.0769, 58, "Ni_58"],
|
|
337
|
+
["Ni", 59.930791, 26.2231, 60, "Ni_60"],
|
|
338
|
+
["Ni", 60.93106, 1.1399, 61, "Ni_61"],
|
|
339
|
+
["Ni", 61.928349, 3.6345, 62, "Ni_62"],
|
|
340
|
+
["Ni", 63.92797, 0.9256, 64, "Ni_64"],
|
|
341
|
+
["Nb", 92.906378, 100.0, 93, "Nb_93"],
|
|
342
|
+
["N", 14.003074, 99.632, 14, "N_14"],
|
|
343
|
+
["N", 15.000109, 0.368, 15, "N_15"],
|
|
344
|
+
["Os", 183.952491, 0.02, 184, "Os_184"],
|
|
345
|
+
["Os", 185.953838, 1.59, 186, "Os_186"],
|
|
346
|
+
["Os", 186.955748, 1.96, 187, "Os_187"],
|
|
347
|
+
["Os", 187.955836, 13.24, 188, "Os_188"],
|
|
348
|
+
["Os", 188.958145, 16.15, 189, "Os_189"],
|
|
349
|
+
["Os", 189.958445, 26.26, 190, "Os_190"],
|
|
350
|
+
["Os", 191.961479, 40.78, 192, "Os_192"],
|
|
351
|
+
["O", 15.994915, 99.757, 16, "O_16"],
|
|
352
|
+
["O", 16.999132, 0.038, 17, "O_17"],
|
|
353
|
+
["O", 17.99916, 0.205, 18, "O_18"],
|
|
354
|
+
["Pd", 101.905608, 1.02, 102, "Pd_102"],
|
|
355
|
+
["Pd", 103.904035, 11.14, 104, "Pd_104"],
|
|
356
|
+
["Pd", 104.905084, 22.33, 105, "Pd_105"],
|
|
357
|
+
["Pd", 105.903483, 27.33, 106, "Pd_106"],
|
|
358
|
+
["Pd", 107.903894, 26.46, 108, "Pd_108"],
|
|
359
|
+
["Pd", 109.905152, 11.72, 110, "Pd_110"],
|
|
360
|
+
["P", 30.973762, 100.0, 31, "P_31"],
|
|
361
|
+
["Pt", 189.95993, 0.014, 190, "Pt_190"],
|
|
362
|
+
["Pt", 191.961035, 0.782, 192, "Pt_192"],
|
|
363
|
+
["Pt", 193.962664, 32.967, 194, "Pt_194"],
|
|
364
|
+
["Pt", 194.964774, 33.832, 195, "Pt_195"],
|
|
365
|
+
["Pt", 195.964935, 25.242, 196, "Pt_196"],
|
|
366
|
+
["Pt", 197.967876, 7.163, 198, "Pt_198"],
|
|
367
|
+
["K", 38.963707, 93.2581, 39, "K_39"],
|
|
368
|
+
["K", 39.963999, 0.0117, 40, "K_40"],
|
|
369
|
+
["K", 40.961826, 6.7302, 41, "K_41"],
|
|
370
|
+
["Pr", 140.907648, 100.0, 141, "Pr_141"],
|
|
371
|
+
["Re", 184.952956, 37.4, 185, "Re_185"],
|
|
372
|
+
["Re", 186.955751, 62.6, 187, "Re_187"],
|
|
373
|
+
["Rh", 102.905504, 100.0, 103, "Rh_103"],
|
|
374
|
+
["Rb", 84.911789, 72.17, 85, "Rb_85"],
|
|
375
|
+
["Rb", 86.909183, 27.83, 87, "Rb_87"],
|
|
376
|
+
["Ru", 95.907598, 5.54, 96, "Ru_96"],
|
|
377
|
+
["Ru", 97.905287, 1.87, 98, "Ru_98"],
|
|
378
|
+
["Ru", 98.905939, 12.76, 99, "Ru_99"],
|
|
379
|
+
["Ru", 99.90422, 12.6, 100, "Ru_100"],
|
|
380
|
+
["Ru", 100.905582, 17.06, 101, "Ru_101"],
|
|
381
|
+
["Ru", 101.90435, 31.55, 102, "Ru_102"],
|
|
382
|
+
["Ru", 103.90543, 18.62, 104, "Ru_104"],
|
|
383
|
+
["Sm", 143.911995, 3.07, 144, "Sm_144"],
|
|
384
|
+
["Sm", 146.914893, 14.99, 147, "Sm_147"],
|
|
385
|
+
["Sm", 147.914818, 11.24, 148, "Sm_148"],
|
|
386
|
+
["Sm", 148.91718, 13.82, 149, "Sm_149"],
|
|
387
|
+
["Sm", 149.917271, 7.38, 150, "Sm_150"],
|
|
388
|
+
["Sm", 151.919728, 26.75, 152, "Sm_152"],
|
|
389
|
+
["Sm", 153.922205, 22.75, 154, "Sm_154"],
|
|
390
|
+
["Sc", 44.95591, 100.0, 45, "Sc_45"],
|
|
391
|
+
["Se", 73.922477, 0.89, 74, "Se_74"],
|
|
392
|
+
["Se", 75.919214, 9.37, 76, "Se_76"],
|
|
393
|
+
["Se", 76.919915, 7.63, 77, "Se_77"],
|
|
394
|
+
["Se", 77.91731, 23.77, 78, "Se_78"],
|
|
395
|
+
["Se", 79.916522, 49.61, 80, "Se_80"],
|
|
396
|
+
["Se", 81.9167, 8.73, 82, "Se_82"],
|
|
397
|
+
["Si", 27.976927, 92.2297, 28, "Si_28"],
|
|
398
|
+
["Si", 28.976495, 4.6832, 29, "Si_29"],
|
|
399
|
+
["Si", 29.97377, 3.0872, 30, "Si_30"],
|
|
400
|
+
["Ag", 106.905093, 51.839, 107, "Ag_107"],
|
|
401
|
+
["Ag", 108.904756, 48.161, 109, "Ag_109"],
|
|
402
|
+
["Na", 22.98977, 100.0, 23, "Na_23"],
|
|
403
|
+
["Sr", 83.913425, 0.56, 84, "Sr_84"],
|
|
404
|
+
["Sr", 85.909262, 9.86, 86, "Sr_86"],
|
|
405
|
+
["Sr", 86.908879, 7.0, 87, "Sr_87"],
|
|
406
|
+
["Sr", 87.905614, 82.58, 88, "Sr_88"],
|
|
407
|
+
["S", 31.972071, 94.93, 32, "S_32"],
|
|
408
|
+
["S", 32.971458, 0.76, 33, "S_33"],
|
|
409
|
+
["S", 33.967867, 4.29, 34, "S_34"],
|
|
410
|
+
["S", 35.967081, 0.02, 36, "S_36"],
|
|
411
|
+
["Ta", 179.947466, 0.012, 180, "Ta_180"],
|
|
412
|
+
["Ta", 180.947996, 99.988, 181, "Ta_181"],
|
|
413
|
+
["Te", 119.90402, 0.09, 120, "Te_120"],
|
|
414
|
+
["Te", 121.903047, 2.55, 122, "Te_122"],
|
|
415
|
+
["Te", 122.904273, 0.89, 123, "Te_123"],
|
|
416
|
+
["Te", 123.902819, 4.74, 124, "Te_124"],
|
|
417
|
+
["Te", 124.904425, 7.07, 125, "Te_125"],
|
|
418
|
+
["Te", 125.903306, 18.84, 126, "Te_126"],
|
|
419
|
+
["Te", 127.904461, 31.74, 128, "Te_128"],
|
|
420
|
+
["Te", 129.906223, 34.08, 130, "Te_130"],
|
|
421
|
+
["Tb", 158.925343, 100.0, 159, "Tb_159"],
|
|
422
|
+
["Tl", 202.972329, 29.524, 203, "Tl_203"],
|
|
423
|
+
["Tl", 204.974412, 70.476, 205, "Tl_205"],
|
|
424
|
+
["Th", 232.03805, 100.0, 232, "Th_232"],
|
|
425
|
+
["Tm", 168.934211, 100.0, 169, "Tm_169"],
|
|
426
|
+
["Sn", 111.904821, 0.97, 112, "Sn_112"],
|
|
427
|
+
["Sn", 113.902782, 0.66, 114, "Sn_114"],
|
|
428
|
+
["Sn", 114.903346, 0.34, 115, "Sn_115"],
|
|
429
|
+
["Sn", 115.901744, 14.54, 116, "Sn_116"],
|
|
430
|
+
["Sn", 116.902954, 7.68, 117, "Sn_117"],
|
|
431
|
+
["Sn", 117.901606, 24.22, 118, "Sn_118"],
|
|
432
|
+
["Sn", 118.903309, 8.59, 119, "Sn_119"],
|
|
433
|
+
["Sn", 119.902197, 32.58, 120, "Sn_120"],
|
|
434
|
+
["Sn", 121.90344, 4.63, 122, "Sn_122"],
|
|
435
|
+
["Sn", 123.905275, 5.79, 124, "Sn_124"],
|
|
436
|
+
["Ti", 45.952629, 8.25, 46, "Ti_46"],
|
|
437
|
+
["Ti", 46.951764, 7.44, 47, "Ti_47"],
|
|
438
|
+
["Ti", 47.947871, 73.72, 48, "Ti_48"],
|
|
439
|
+
["W", 179.946706, 0.12, 180, "W_180"],
|
|
440
|
+
["W", 181.948206, 26.5, 182, "W_182"],
|
|
441
|
+
["W", 182.950224, 14.31, 183, "W_183"],
|
|
442
|
+
["W", 183.950933, 30.64, 184, "W_184"],
|
|
443
|
+
["W", 185.954362, 28.43, 186, "W_186"],
|
|
444
|
+
["U", 234.040946, 0.0055, 234, "U_234"],
|
|
445
|
+
["U", 235.043923, 0.72, 235, "U_235"],
|
|
446
|
+
["U", 238.050783, 99.2745, 238, "U_238"],
|
|
447
|
+
["V", 49.947163, 0.25, 50, "V_50"],
|
|
448
|
+
["V", 50.943964, 99.75, 51, "V_51"],
|
|
449
|
+
["Xe", 123.905896, 0.09, 124, "Xe_124"],
|
|
450
|
+
["Xe", 125.904269, 0.09, 126, "Xe_126"],
|
|
451
|
+
["Xe", 127.90353, 1.92, 128, "Xe_128"],
|
|
452
|
+
["Xe", 128.904779, 26.44, 129, "Xe_129"],
|
|
453
|
+
["Xe", 129.903508, 10.44, 130, "Xe_130"],
|
|
454
|
+
["Xe", 130.905082, 21.18, 131, "Xe_131"],
|
|
455
|
+
["Xe", 131.904154, 26.89, 132, "Xe_132"],
|
|
456
|
+
["Xe", 133.905395, 10.44, 134, "Xe_134"],
|
|
457
|
+
["Xe", 135.90722, 8.87, 136, "Xe_136"],
|
|
458
|
+
["Yb", 167.933894, 0.13, 168, "Yb_168"],
|
|
459
|
+
["Yb", 169.934759, 3.04, 170, "Yb_170"],
|
|
460
|
+
["Yb", 170.936322, 14.28, 171, "Yb_171"],
|
|
461
|
+
["Yb", 171.936378, 21.83, 172, "Yb_172"],
|
|
462
|
+
["Yb", 172.938207, 16.13, 173, "Yb_173"],
|
|
463
|
+
["Yb", 173.938858, 31.83, 174, "Yb_174"],
|
|
464
|
+
["Yb", 175.942568, 12.76, 176, "Yb_176"],
|
|
465
|
+
["Y", 88.905848, 100.0, 89, "Y_89"],
|
|
466
|
+
["Zn", 63.929147, 48.63, 64, "Zn_64"],
|
|
467
|
+
["Zn", 65.926037, 27.9, 66, "Zn_66"],
|
|
468
|
+
["Zn", 66.927131, 4.1, 67, "Zn_67"],
|
|
469
|
+
["Zn", 67.924848, 18.75, 68, "Zn_68"],
|
|
470
|
+
["Zn", 69.925325, 0.62, 70, "Zn_70"],
|
|
471
|
+
["Zr", 89.904704, 51.45, 90, "Zr_90"],
|
|
472
|
+
["Zr", 90.905645, 11.22, 91, "Zr_91"],
|
|
473
|
+
["Zr", 91.90504, 17.15, 92, "Zr_92"],
|
|
474
|
+
["Zr", 93.906316, 17.38, 94, "Zr_94"],
|
|
475
|
+
["Zr", 95.908276, 2.8, 96, "Zr_96"]])
|
|
476
|
+
|
|
477
|
+
if __name__ == '__main__':
|
|
478
|
+
print(brutto_gen())
|