thermoengine-phaselibrary 2.0.0.dev19__cp315-cp315-win_amd64.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 (33) hide show
  1. thermoengine_phaselibrary/Berman/PurePhases.cp315-win_amd64.pyd +0 -0
  2. thermoengine_phaselibrary/Berman/__init__.py +3 -0
  3. thermoengine_phaselibrary/MELTS/Clinopyroxene_SG94.cp315-win_amd64.pyd +0 -0
  4. thermoengine_phaselibrary/MELTS/Feldspar_EG90.cp315-win_amd64.pyd +0 -0
  5. thermoengine_phaselibrary/MELTS/Fluid_DZ06.cp315-win_amd64.pyd +0 -0
  6. thermoengine_phaselibrary/MELTS/Garnet_BK91.cp315-win_amd64.pyd +0 -0
  7. thermoengine_phaselibrary/MELTS/Leucite_SG98.cp315-win_amd64.pyd +0 -0
  8. thermoengine_phaselibrary/MELTS/Liquid_pMELTS.cp315-win_amd64.pyd +0 -0
  9. thermoengine_phaselibrary/MELTS/Liquid_v1_0.cp315-win_amd64.pyd +0 -0
  10. thermoengine_phaselibrary/MELTS/Liquid_v1_2.cp315-win_amd64.pyd +0 -0
  11. thermoengine_phaselibrary/MELTS/Liquid_v2_0.cp315-win_amd64.pyd +0 -0
  12. thermoengine_phaselibrary/MELTS/Olivine_HSG.cp315-win_amd64.pyd +0 -0
  13. thermoengine_phaselibrary/MELTS/Orthopyroxene_SG94.cp315-win_amd64.pyd +0 -0
  14. thermoengine_phaselibrary/MELTS/RhombohedralOxides_GE08.cp315-win_amd64.pyd +0 -0
  15. thermoengine_phaselibrary/MELTS/Spinel_SG91.cp315-win_amd64.pyd +0 -0
  16. thermoengine_phaselibrary/MELTS/__init__.py +7 -0
  17. thermoengine_phaselibrary/MELTS/aqueous.cp315-win_amd64.pyd +0 -0
  18. thermoengine_phaselibrary/__init__.py +4 -0
  19. thermoengine_phaselibrary/databases/MELTS_pMELTS.json +48 -0
  20. thermoengine_phaselibrary/databases/MELTS_v1_0.json +70 -0
  21. thermoengine_phaselibrary/databases/MELTS_v1_0_Berman_PurePhases.json +106 -0
  22. thermoengine_phaselibrary/databases/MELTS_v1_2.json +66 -0
  23. thermoengine_phaselibrary/databases/MELTS_v2_0.json +79 -0
  24. thermoengine_phaselibrary/databases/__init__.py +0 -0
  25. thermoengine_phaselibrary/phase_module_lookup/Berman.json +367 -0
  26. thermoengine_phaselibrary/phase_module_lookup/MELTS.json +75 -0
  27. thermoengine_phaselibrary/phase_module_lookup/__init__.py +0 -0
  28. thermoengine_phaselibrary/utils.py +32 -0
  29. thermoengine_phaselibrary-2.0.0.dev19.dist-info/METADATA +693 -0
  30. thermoengine_phaselibrary-2.0.0.dev19.dist-info/RECORD +33 -0
  31. thermoengine_phaselibrary-2.0.0.dev19.dist-info/WHEEL +5 -0
  32. thermoengine_phaselibrary-2.0.0.dev19.dist-info/licenses/LICENSE +661 -0
  33. thermoengine_phaselibrary-2.0.0.dev19.dist-info/top_level.txt +1 -0
@@ -0,0 +1,367 @@
1
+ {
2
+ "Berman_Akermanite_Berman88": {
3
+ "module_name": "Berman.PurePhases",
4
+ "type": "pure",
5
+ "interface": "coder"
6
+ },
7
+ "Berman_Albite_Berman88": {
8
+ "module_name": "Berman.PurePhases",
9
+ "type": "pure",
10
+ "interface": "coder"
11
+ },
12
+ "Berman_HighAlbite_Berman88": {
13
+ "module_name": "Berman.PurePhases",
14
+ "type": "pure",
15
+ "interface": "coder"
16
+ },
17
+ "Berman_LowAlbite_Berman88": {
18
+ "module_name": "Berman.PurePhases",
19
+ "type": "pure",
20
+ "interface": "coder"
21
+ },
22
+ "Berman_Almandine_Berman88": {
23
+ "module_name": "Berman.PurePhases",
24
+ "type": "pure",
25
+ "interface": "coder"
26
+ },
27
+ "Berman_Andalusite_Berman88": {
28
+ "module_name": "Berman.PurePhases",
29
+ "type": "pure",
30
+ "interface": "coder"
31
+ },
32
+ "Berman_Anorthite_Berman88": {
33
+ "module_name": "Berman.PurePhases",
34
+ "type": "pure",
35
+ "interface": "coder"
36
+ },
37
+ "Berman_Anthophyllite_Berman88": {
38
+ "module_name": "Berman.PurePhases",
39
+ "type": "pure",
40
+ "interface": "coder"
41
+ },
42
+ "Berman_Antigorite_Berman88": {
43
+ "module_name": "Berman.PurePhases",
44
+ "type": "pure",
45
+ "interface": "coder"
46
+ },
47
+ "Berman_Apatite_Berman88": {
48
+ "module_name": "Berman.PurePhases",
49
+ "type": "pure",
50
+ "interface": "coder"
51
+ },
52
+ "Berman_Brucite_Berman88": {
53
+ "module_name": "Berman.PurePhases",
54
+ "type": "pure",
55
+ "interface": "coder"
56
+ },
57
+ "Berman_CaAlPyroxene_Berman88": {
58
+ "module_name": "Berman.PurePhases",
59
+ "type": "pure",
60
+ "interface": "coder"
61
+ },
62
+ "Berman_Calcite_Berman88": {
63
+ "module_name": "Berman.PurePhases",
64
+ "type": "pure",
65
+ "interface": "coder"
66
+ },
67
+ "Berman_Chrysotile_Berman88": {
68
+ "module_name": "Berman.PurePhases",
69
+ "type": "pure",
70
+ "interface": "coder"
71
+ },
72
+ "Berman_Clinochlore_Berman88": {
73
+ "module_name": "Berman.PurePhases",
74
+ "type": "pure",
75
+ "interface": "coder"
76
+ },
77
+ "Berman_Coesite_Berman88": {
78
+ "module_name": "Berman.PurePhases",
79
+ "type": "pure",
80
+ "interface": "coder"
81
+ },
82
+ "Berman_Cordierite": {
83
+ "module_name": "Berman.PurePhases",
84
+ "type": "pure",
85
+ "interface": "coder"
86
+ },
87
+ "Berman_Corundum_Berman88": {
88
+ "module_name": "Berman.PurePhases",
89
+ "type": "pure",
90
+ "interface": "coder"
91
+ },
92
+ "Berman_Cristobalite_Berman88": {
93
+ "module_name": "Berman.PurePhases",
94
+ "type": "pure",
95
+ "interface": "coder"
96
+ },
97
+ "Berman_Diaspore_Berman88": {
98
+ "module_name": "Berman.PurePhases",
99
+ "type": "pure",
100
+ "interface": "coder"
101
+ },
102
+ "Berman_Diopside_Berman88": {
103
+ "module_name": "Berman.PurePhases",
104
+ "type": "pure",
105
+ "interface": "coder"
106
+ },
107
+ "Berman_Dolomite_Berman88": {
108
+ "module_name": "Berman.PurePhases",
109
+ "type": "pure",
110
+ "interface": "coder"
111
+ },
112
+ "Berman_Clinoenstatite_Berman88": {
113
+ "module_name": "Berman.PurePhases",
114
+ "type": "pure",
115
+ "interface": "coder"
116
+ },
117
+ "Berman_Orthoenstatite_Berman88": {
118
+ "module_name": "Berman.PurePhases",
119
+ "type": "pure",
120
+ "interface": "coder"
121
+ },
122
+ "Berman_Protoenstatite_Berman88": {
123
+ "module_name": "Berman.PurePhases",
124
+ "type": "pure",
125
+ "interface": "coder"
126
+ },
127
+ "Berman_Fayalite_Berman88": {
128
+ "module_name": "Berman.PurePhases",
129
+ "type": "pure",
130
+ "interface": "coder"
131
+ },
132
+ "Berman_Ferrosilite_Berman88": {
133
+ "module_name": "Berman.PurePhases",
134
+ "type": "pure",
135
+ "interface": "coder"
136
+ },
137
+ "Berman_Forsterite_Berman88": {
138
+ "module_name": "Berman.PurePhases",
139
+ "type": "pure",
140
+ "interface": "coder"
141
+ },
142
+ "Berman_Gehlenite_Berman88": {
143
+ "module_name": "Berman.PurePhases",
144
+ "type": "pure",
145
+ "interface": "coder"
146
+ },
147
+ "Berman_Grossular_Berman88": {
148
+ "module_name": "Berman.PurePhases",
149
+ "type": "pure",
150
+ "interface": "coder"
151
+ },
152
+ "Berman_Hematite_Berman88": {
153
+ "module_name": "Berman.PurePhases",
154
+ "type": "pure",
155
+ "interface": "coder"
156
+ },
157
+ "Berman_Ilmenite_Berman88": {
158
+ "module_name": "Berman.PurePhases",
159
+ "type": "pure",
160
+ "interface": "coder"
161
+ },
162
+ "Berman_Jadeite_Berman88": {
163
+ "module_name": "Berman.PurePhases",
164
+ "type": "pure",
165
+ "interface": "coder"
166
+ },
167
+ "Berman_Kaolinite_Berman88": {
168
+ "module_name": "Berman.PurePhases",
169
+ "type": "pure",
170
+ "interface": "coder"
171
+ },
172
+ "Berman_Kyanite_Berman88": {
173
+ "module_name": "Berman.PurePhases",
174
+ "type": "pure",
175
+ "interface": "coder"
176
+ },
177
+ "Berman_Lawsonite_Berman88": {
178
+ "module_name": "Berman.PurePhases",
179
+ "type": "pure",
180
+ "interface": "coder"
181
+ },
182
+ "Berman_Leucite_Berman88": {
183
+ "module_name": "Berman.PurePhases",
184
+ "type": "pure",
185
+ "interface": "coder"
186
+ },
187
+ "Berman_Lime_Berman88": {
188
+ "module_name": "Berman.PurePhases",
189
+ "type": "pure",
190
+ "interface": "coder"
191
+ },
192
+ "Berman_Magnesite_Berman88": {
193
+ "module_name": "Berman.PurePhases",
194
+ "type": "pure",
195
+ "interface": "coder"
196
+ },
197
+ "Berman_Magnetite_Berman88": {
198
+ "module_name": "Berman.PurePhases",
199
+ "type": "pure",
200
+ "interface": "coder"
201
+ },
202
+ "Berman_Margarite_Berman88": {
203
+ "module_name": "Berman.PurePhases",
204
+ "type": "pure",
205
+ "interface": "coder"
206
+ },
207
+ "Berman_Meionite_Berman88": {
208
+ "module_name": "Berman.PurePhases",
209
+ "type": "pure",
210
+ "interface": "coder"
211
+ },
212
+ "Berman_Merwinite_Berman88": {
213
+ "module_name": "Berman.PurePhases",
214
+ "type": "pure",
215
+ "interface": "coder"
216
+ },
217
+ "Berman_Monticellite_Berman88": {
218
+ "module_name": "Berman.PurePhases",
219
+ "type": "pure",
220
+ "interface": "coder"
221
+ },
222
+ "Berman_Muscovite_Berman88": {
223
+ "module_name": "Berman.PurePhases",
224
+ "type": "pure",
225
+ "interface": "coder"
226
+ },
227
+ "Berman_Paragonite_Berman88": {
228
+ "module_name": "Berman.PurePhases",
229
+ "type": "pure",
230
+ "interface": "coder"
231
+ },
232
+ "Berman_Periclase_Berman88": {
233
+ "module_name": "Berman.PurePhases",
234
+ "type": "pure",
235
+ "interface": "coder"
236
+ },
237
+ "Berman_Phlogopite_Berman88": {
238
+ "module_name": "Berman.PurePhases",
239
+ "type": "pure",
240
+ "interface": "coder"
241
+ },
242
+ "Berman_PotassiumFeldspar_Berman88": {
243
+ "module_name": "Berman.PurePhases",
244
+ "type": "pure",
245
+ "interface": "coder"
246
+ },
247
+ "Berman_Sanidine_Berman88": {
248
+ "module_name": "Berman.PurePhases",
249
+ "type": "pure",
250
+ "interface": "coder"
251
+ },
252
+ "Berman_Microcline_Berman88": {
253
+ "module_name": "Berman.PurePhases",
254
+ "type": "pure",
255
+ "interface": "coder"
256
+ },
257
+ "Berman_Prehnite_Berman88": {
258
+ "module_name": "Berman.PurePhases",
259
+ "type": "pure",
260
+ "interface": "coder"
261
+ },
262
+ "Berman_Pyrope_Berman88": {
263
+ "module_name": "Berman.PurePhases",
264
+ "type": "pure",
265
+ "interface": "coder"
266
+ },
267
+ "Berman_Pyrophyllite_Berman88": {
268
+ "module_name": "Berman.PurePhases",
269
+ "type": "pure",
270
+ "interface": "coder"
271
+ },
272
+ "Berman_Quartz_Berman88": {
273
+ "module_name": "Berman.PurePhases",
274
+ "type": "pure",
275
+ "interface": "coder"
276
+ },
277
+ "Berman_Rutile_Berman88": {
278
+ "module_name": "Berman.PurePhases",
279
+ "type": "pure",
280
+ "interface": "coder"
281
+ },
282
+ "Berman_Sillimanite_Berman88": {
283
+ "module_name": "Berman.PurePhases",
284
+ "type": "pure",
285
+ "interface": "coder"
286
+ },
287
+ "Berman_Sphene_Berman88": {
288
+ "module_name": "Berman.PurePhases",
289
+ "type": "pure",
290
+ "interface": "coder"
291
+ },
292
+ "Berman_Spinel_Berman88": {
293
+ "module_name": "Berman.PurePhases",
294
+ "type": "pure",
295
+ "interface": "coder"
296
+ },
297
+ "Berman_Talc_Berman88": {
298
+ "module_name": "Berman.PurePhases",
299
+ "type": "pure",
300
+ "interface": "coder"
301
+ },
302
+ "Berman_Tremolite_Berman88": {
303
+ "module_name": "Berman.PurePhases",
304
+ "type": "pure",
305
+ "interface": "coder"
306
+ },
307
+ "Berman_Tridymite_Berman88": {
308
+ "module_name": "Berman.PurePhases",
309
+ "type": "pure",
310
+ "interface": "coder"
311
+ },
312
+ "Berman_HighTridymite_Berman88": {
313
+ "module_name": "Berman.PurePhases",
314
+ "type": "pure",
315
+ "interface": "coder"
316
+ },
317
+ "Berman_Whitlockite_Berman88": {
318
+ "module_name": "Berman.PurePhases",
319
+ "type": "pure",
320
+ "interface": "coder"
321
+ },
322
+ "Berman_Wollastonite_Berman88": {
323
+ "module_name": "Berman.PurePhases",
324
+ "type": "pure",
325
+ "interface": "coder"
326
+ },
327
+ "Berman_Pseudowollastonite_Berman88": {
328
+ "module_name": "Berman.PurePhases",
329
+ "type": "pure",
330
+ "interface": "coder"
331
+ },
332
+ "Berman_Zoisite_Berman88": {
333
+ "module_name": "Berman.PurePhases",
334
+ "type": "pure",
335
+ "interface": "coder"
336
+ },
337
+ "Berman_Clinozoisite_Berman88": {
338
+ "module_name": "Berman.PurePhases",
339
+ "type": "pure",
340
+ "interface": "coder"
341
+ },
342
+ "Berman_CarbonDioxide_Berman88": {
343
+ "module_name": "Berman.PurePhases",
344
+ "type": "pure",
345
+ "interface": "coder"
346
+ },
347
+ "Berman_Water_Berman88": {
348
+ "module_name": "Berman.PurePhases",
349
+ "type": "pure",
350
+ "interface": "coder"
351
+ },
352
+ "Berman_OxygenGas_Berman88": {
353
+ "module_name": "Berman.PurePhases",
354
+ "type": "pure",
355
+ "interface": "coder"
356
+ },
357
+ "Berman_SulfurGas_Berman88": {
358
+ "module_name": "Berman.PurePhases",
359
+ "type": "pure",
360
+ "interface": "coder"
361
+ },
362
+ "Berman_HydrogenGas_Berman88": {
363
+ "module_name": "Berman.PurePhases",
364
+ "type": "pure",
365
+ "interface": "coder"
366
+ }
367
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "MELTS_Liquid_v1_0": {
3
+ "module_name": "MELTS.Liquid_v1_0",
4
+ "type": "solution",
5
+ "interface": "coder"
6
+ },
7
+ "MELTS_Liquid_v1_2": {
8
+ "module_name": "MELTS.Liquid_v1_2",
9
+ "type": "solution",
10
+ "interface": "coder"
11
+ },
12
+ "MELTS_Liquid_v2_0": {
13
+ "module_name": "MELTS.Liquid_v2_0",
14
+ "type": "solution",
15
+ "interface": "coder"
16
+ },
17
+ "MELTS_Olivine_HSG": {
18
+ "module_name": "MELTS.Olivine_HSG",
19
+ "type": "solution",
20
+ "interface": "coder"
21
+ },
22
+ "MELTS_Spinel_SG91": {
23
+ "module_name": "MELTS.Spinel_SG91",
24
+ "type": "solution",
25
+ "interface": "coder"
26
+ },
27
+ "MELTS_Feldspar_EG90": {
28
+ "module_name": "MELTS.Feldspar_EG90",
29
+ "type": "solution",
30
+ "interface": "coder"
31
+ },
32
+ "MELTS_Clinopyroxene_SG94": {
33
+ "module_name": "MELTS.Clinopyroxene_SG94",
34
+ "type": "solution",
35
+ "interface": "coder"
36
+ },
37
+ "MELTS_Orthopyroxene_SG94": {
38
+ "module_name": "MELTS.Orthopyroxene_SG94",
39
+ "type": "solution",
40
+ "interface": "coder"
41
+ },
42
+ "MELTS_Leucite_SG98": {
43
+ "module_name": "MELTS.Leucite_SG98",
44
+ "type": "solution",
45
+ "interface": "coder"
46
+ },
47
+ "MELTS_SWIM_Ghiorso": {
48
+ "module_name": "MELTS.aqueous",
49
+ "type": "pure",
50
+ "interface": "coder"
51
+ },
52
+
53
+
54
+ "MELTS_Garnet_BK91": {
55
+ "module_name": "MELTS.Garnet_BK91",
56
+ "type": "solution",
57
+ "interface": "legacy"
58
+ },
59
+ "MELTS_Fluid_DZ06": {
60
+ "module_name": "MELTS.Fluid_DZ06",
61
+ "type": "solution",
62
+ "interface": "legacy"
63
+ },
64
+ "MELTS_Liquid_pMELTS": {
65
+ "module_name": "MELTS.Liquid_pMELTS",
66
+ "type": "solution",
67
+ "interface": "legacy"
68
+ },
69
+ "MELTS_RhombohedralOxides_GE08": {
70
+ "module_name": "MELTS.RhombohedralOxides_GE08",
71
+ "type": "solution",
72
+ "interface": "legacy"
73
+ }
74
+
75
+ }
@@ -0,0 +1,32 @@
1
+ import os
2
+ import json
3
+ from importlib import import_module
4
+ from types import ModuleType
5
+
6
+ def load_json_pkg_data(filename:str, dirname:str) -> dict:
7
+ dir_path = os.path.dirname(os.path.realpath(__file__))
8
+ pathname = os.path.join(dir_path, dirname, filename)
9
+ with open(pathname) as f:
10
+ json_data = json.load(f)
11
+
12
+ return json_data
13
+
14
+
15
+
16
+ def load_phase_module(id:str) -> tuple[ModuleType, dict]:
17
+ """
18
+ Returns phase module from phase library corresponding to id
19
+
20
+ Returns
21
+ =======
22
+ - module
23
+ - metadata dict
24
+ """
25
+ model_family = id.split('_')[0]
26
+ metadata = load_json_pkg_data(f"{model_family}.json", 'phase_module_lookup')
27
+ metadata = metadata[id]
28
+ metadata['phase_id'] = id
29
+ module = import_module(f"thermoengine_phaselibrary.{metadata['module_name']}")
30
+
31
+ return module, metadata
32
+