PetThermoTools 0.2.44__py3-none-any.whl → 0.2.45__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.
- PetThermoTools/MELTS.py +14 -1
- PetThermoTools/Path_wrappers.py +3 -2
- PetThermoTools/_version.py +1 -1
- {PetThermoTools-0.2.44.dist-info → PetThermoTools-0.2.45.dist-info}/METADATA +1 -1
- {PetThermoTools-0.2.44.dist-info → PetThermoTools-0.2.45.dist-info}/RECORD +8 -8
- {PetThermoTools-0.2.44.dist-info → PetThermoTools-0.2.45.dist-info}/LICENSE.txt +0 -0
- {PetThermoTools-0.2.44.dist-info → PetThermoTools-0.2.45.dist-info}/WHEEL +0 -0
- {PetThermoTools-0.2.44.dist-info → PetThermoTools-0.2.45.dist-info}/top_level.txt +0 -0
PetThermoTools/MELTS.py
CHANGED
@@ -953,7 +953,6 @@ def path_MELTS(Model = None, comp = None, Frac_solid = None, Frac_fluid = None,
|
|
953
953
|
else:
|
954
954
|
return Results
|
955
955
|
|
956
|
-
print(Liq_Results)
|
957
956
|
T_start_C = Liq_Results['T_Liq'] + 0.1
|
958
957
|
if T_end_C is None and T_maxdrop_C is not None:
|
959
958
|
T_end_C = T_start_C - T_maxdrop_C
|
@@ -965,6 +964,9 @@ def path_MELTS(Model = None, comp = None, Frac_solid = None, Frac_fluid = None,
|
|
965
964
|
else:
|
966
965
|
melts.engine.setSystemProperties(["Log fO2 Path: " + fO2_buffer, "Log fO2 Offset: " + str(fO2_offset)])
|
967
966
|
|
967
|
+
T = None
|
968
|
+
P = None
|
969
|
+
|
968
970
|
if T_path_C is None:
|
969
971
|
if T_end_C is None and dt_C is None:
|
970
972
|
T = T_start_C
|
@@ -973,6 +975,8 @@ def path_MELTS(Model = None, comp = None, Frac_solid = None, Frac_fluid = None,
|
|
973
975
|
elif T_path_C is not None:
|
974
976
|
T = T_path_C
|
975
977
|
|
978
|
+
|
979
|
+
|
976
980
|
if P_path_bar is None:
|
977
981
|
if P_end_bar is None and dp_bar is None:
|
978
982
|
P = P_start_bar
|
@@ -981,12 +985,21 @@ def path_MELTS(Model = None, comp = None, Frac_solid = None, Frac_fluid = None,
|
|
981
985
|
elif P_path_bar is not None:
|
982
986
|
P = P_path_bar
|
983
987
|
|
988
|
+
print(P_path_bar)
|
989
|
+
print(P_end_bar)
|
990
|
+
print(P_start_bar)
|
991
|
+
print(dp_bar)
|
992
|
+
|
993
|
+
if type(P) == np.ndarray and T_end_C is not None and dt_C is None:
|
994
|
+
T = np.linspace(T_start_C, T_end_C, len(P))
|
995
|
+
|
984
996
|
if type(T) == np.ndarray and P_end_bar is None and dp_bar is not None:
|
985
997
|
P = np.linspace(P_start_bar, P_start_bar - dp_bar*(len(T)-1), len(T))
|
986
998
|
if type(T) == np.ndarray and P_end_bar is not None and dp_bar is None:
|
987
999
|
P = np.linspace(P_start_bar, P_end_bar, len(T))
|
988
1000
|
elif type(P) == np.ndarray and T_end_C is None and dt_C is not None:
|
989
1001
|
T = np.linspace(T_start_C, T_start_C - dt_C*(len(P)-1), len(P))
|
1002
|
+
|
990
1003
|
|
991
1004
|
if type(T) == np.ndarray and type(P) == np.ndarray:
|
992
1005
|
if len(T) != len(P):
|
PetThermoTools/Path_wrappers.py
CHANGED
@@ -185,7 +185,7 @@ def polybaric_crystallisation_path(Model = None, bulk = None, Frac_solid = None,
|
|
185
185
|
Fe3Fet_init = None, Fe3Fet_Liq = None, H2O_init = None, H2O_Liq = None,
|
186
186
|
CO2_init = None, CO2_Liq = None, find_liquidus = None, fO2_buffer = None,
|
187
187
|
fO2_offset = None, label = None, timeout = None, multi_processing=True,
|
188
|
-
Suppress = ['rutile', 'tridymite'], Suppress_except=False):
|
188
|
+
Suppress = ['rutile', 'tridymite'], Suppress_except=False, multiprocessing = True):
|
189
189
|
"""
|
190
190
|
Simulates polybaric crystallization along a user-specified P-T path using the `multi_path` function.
|
191
191
|
|
@@ -275,7 +275,8 @@ def polybaric_crystallisation_onestep(Model = None, bulk = None, Frac_solid = No
|
|
275
275
|
P_start_bar = None, P_end_bar = None, Fe3Fet_Liq = None, Fe3Fet_init = None,
|
276
276
|
H2O_Liq = None, H2O_init = None, CO2_Liq = None, CO2_init = None,
|
277
277
|
find_liquidus = None, fO2_buffer = None, fO2_offset = None, label = None,
|
278
|
-
timeout = None, multi_processing = True, Suppress = ['rutile', 'tridymite'],
|
278
|
+
timeout = None, multi_processing = True, Suppress = ['rutile', 'tridymite'],
|
279
|
+
Suppress_except=False,multiprocessing=True):
|
279
280
|
"""
|
280
281
|
Simulates polybaric crystallization along a user-specified P-T path using the `multi_path` function.
|
281
282
|
|
PetThermoTools/_version.py
CHANGED
@@ -4,17 +4,17 @@ PetThermoTools/GenFuncs.py,sha256=oMV3FYIpfHNpGZloN5a6Vr8Sv_5IRsKt4hHIUNbDu24,19
|
|
4
4
|
PetThermoTools/Holland.py,sha256=udBFeVUyTBpSfLIhx7Hy6o0I8ApNCDvwU_gZa0diY5w,7251
|
5
5
|
PetThermoTools/Installation.py,sha256=UfVOW1NZFdzMWPyID5u7t0KwvpJA0AqYohzidXIAwYs,6098
|
6
6
|
PetThermoTools/Liq.py,sha256=4tOnVROXr7V6cfvZceKidFT9J20TZE3Om2oem92QC4s,36842
|
7
|
-
PetThermoTools/MELTS.py,sha256=
|
7
|
+
PetThermoTools/MELTS.py,sha256=sH2sadG2vhr1be0kkMGB_rFJbjF0XDiJ4EZItGRjlD0,76730
|
8
8
|
PetThermoTools/Melting.py,sha256=19rFcTegaB04Dx3bsclbLdjzlegJHGlMRn2QnccLqQw,15718
|
9
9
|
PetThermoTools/Path.py,sha256=MOQMN9jIBbSsqXD1BCHsWoMPOWphqCYCKQvmm88mltA,39580
|
10
|
-
PetThermoTools/Path_wrappers.py,sha256=
|
10
|
+
PetThermoTools/Path_wrappers.py,sha256=Ht-hAxrJvHq6jc8M5LEL319n47zinOu_rCvvaM5G4Lg,30260
|
11
11
|
PetThermoTools/PhaseDiagrams.py,sha256=sjjX84LK34m_OjsKCV78zpzRDAXG7oaLu_Z5BxwB_3I,30298
|
12
12
|
PetThermoTools/Plotting.py,sha256=KxBNT2nqqrVn9dsAIjGk1hMUVRq7r-WrG_b9quNcRMo,37295
|
13
13
|
PetThermoTools/Saturation.py,sha256=3liK4WDVtl5DWpMpE_tQ_fONBCZTctkiNeCXCuNmXoM,29961
|
14
14
|
PetThermoTools/__init__.py,sha256=PbiwQj_mNNEwuIZOLETmtMMshiXa50wjCA6mfvpOpOs,2393
|
15
|
-
PetThermoTools/_version.py,sha256=
|
16
|
-
PetThermoTools-0.2.
|
17
|
-
PetThermoTools-0.2.
|
18
|
-
PetThermoTools-0.2.
|
19
|
-
PetThermoTools-0.2.
|
20
|
-
PetThermoTools-0.2.
|
15
|
+
PetThermoTools/_version.py,sha256=aO6nD2-_TYFrY_TLmEbkDg2SutbHKOk3GYXyyizX_b4,296
|
16
|
+
PetThermoTools-0.2.45.dist-info/LICENSE.txt,sha256=-mkx4iEw8Pk1RZUvncBhGLW87Uur5JB7FBQtOmX-VP0,1752
|
17
|
+
PetThermoTools-0.2.45.dist-info/METADATA,sha256=GDY65Q6Z12Ur8VgA8YxG_ZMsS8Zl_EBE0dA72cXbfDU,773
|
18
|
+
PetThermoTools-0.2.45.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
19
|
+
PetThermoTools-0.2.45.dist-info/top_level.txt,sha256=IqK8iYBR3YJozzMOTRZ8x8mU2k6x8ycoMBxZTm-I06U,15
|
20
|
+
PetThermoTools-0.2.45.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|