PetThermoTools 0.2.42__tar.gz → 0.2.43__tar.gz
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-0.2.42/src/PetThermoTools.egg-info → PetThermoTools-0.2.43}/PKG-INFO +1 -1
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/setup.py +0 -1
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/Path.py +47 -4
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/_version.py +1 -1
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43/src/PetThermoTools.egg-info}/PKG-INFO +1 -1
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools.egg-info/requires.txt +0 -1
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/LICENSE.txt +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/README.md +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/setup.cfg +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/Barom.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/Compositions.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/GenFuncs.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/Holland.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/Installation.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/Liq.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/MELTS.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/Melting.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/Path_wrappers.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/PhaseDiagrams.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/Plotting.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/Saturation.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools/__init__.py +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools.egg-info/SOURCES.txt +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools.egg-info/dependency_links.txt +0 -0
- {PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools.egg-info/top_level.txt +0 -0
@@ -491,9 +491,22 @@ def path_multi(q, index, *, Model = None, comp = None, Frac_solid = None, Frac_f
|
|
491
491
|
elif Model == "MELTSv1.2.0":
|
492
492
|
melts = MELTSdynamic(4)
|
493
493
|
else:
|
494
|
-
from juliacall import Main as jl
|
494
|
+
from juliacall import Main as jl
|
495
|
+
|
496
|
+
# import os, pathlib
|
497
|
+
|
498
|
+
# # 1. Where to install Julia + MAGEMin environment (user home dir, persistent)
|
499
|
+
# home = str(pathlib.Path.home())
|
500
|
+
# env_path = os.path.join(home, ".MAGEMinEnv")
|
501
|
+
|
502
|
+
# jl.seval(f"""
|
503
|
+
# import Pkg
|
504
|
+
# Pkg.activate("{env_path}")
|
505
|
+
# """)
|
495
506
|
|
496
507
|
jl.seval("using MAGEMinCalc")
|
508
|
+
|
509
|
+
|
497
510
|
|
498
511
|
for i in index:
|
499
512
|
try:
|
@@ -554,12 +567,22 @@ def path_multi(q, index, *, Model = None, comp = None, Frac_solid = None, Frac_f
|
|
554
567
|
# T_C = T_C[i], T_path_C = T_path_C[i], P_start_bar = P_start_bar[i], P_end_bar = P_end_bar[i],
|
555
568
|
# dp_bar = dp_bar[i], P_bar = P_bar[i], P_path_bar = P_path_bar[i], frac_xtal = Frac_solid,
|
556
569
|
# fo2_buffer = fO2_buffer, fo2_offset = fO2_offset[i], find_liquidus = find_liquidus)
|
557
|
-
|
570
|
+
|
571
|
+
if Suppress == ['rutile', 'tridymite']:
|
572
|
+
Suppress = None
|
573
|
+
|
574
|
+
if Suppress is not None:
|
575
|
+
jl.Suppress = Suppress
|
576
|
+
jl.seval("Suppress = Vector{String}(Suppress)")
|
577
|
+
julia_Suppress = jl.Suppress
|
578
|
+
|
579
|
+
|
558
580
|
Results_df = jl.MAGEMinCalc.path(
|
559
581
|
comp=comp_julia, T_start_C=T_start_C[i], T_end_C=T_end_C[i], dt_C=dt_C[i],
|
560
582
|
T_C=T_C[i], P_start_bar=P_start_bar[i], P_end_bar=P_end_bar[i], dp_bar=dp_bar[i],
|
561
583
|
P_bar=P_bar[i], T_path_C=T_path_C[i], P_path_bar=P_path_bar[i], frac_xtal=Frac_solid,
|
562
|
-
Model=Model, fo2_buffer=fO2_buffer, fo2_offset=fO2_offset[i], find_liquidus=find_liquidus
|
584
|
+
Model=Model, fo2_buffer=fO2_buffer, fo2_offset=fO2_offset[i], find_liquidus=find_liquidus,
|
585
|
+
suppress = julia_Suppress
|
563
586
|
)
|
564
587
|
|
565
588
|
Results = dict(Results_df)
|
@@ -721,6 +744,16 @@ def path(q, index, *, Model = None, comp = None, Frac_solid = None, Frac_fluid =
|
|
721
744
|
|
722
745
|
# import julia
|
723
746
|
from juliacall import Main as jl, convert as jlconvert
|
747
|
+
# import os, pathlib
|
748
|
+
|
749
|
+
# # 1. Where to install Julia + MAGEMin environment (user home dir, persistent)
|
750
|
+
# home = str(pathlib.Path.home())
|
751
|
+
# env_path = os.path.join(home, ".MAGEMinEnv")
|
752
|
+
|
753
|
+
# jl.seval(f"""
|
754
|
+
# import Pkg
|
755
|
+
# Pkg.activate("{env_path}")
|
756
|
+
# """)
|
724
757
|
|
725
758
|
jl.seval("using MAGEMinCalc")
|
726
759
|
|
@@ -739,11 +772,21 @@ def path(q, index, *, Model = None, comp = None, Frac_solid = None, Frac_fluid =
|
|
739
772
|
else:
|
740
773
|
P_path_bar_julia = P_path_bar
|
741
774
|
|
775
|
+
if Suppress == ['rutile', 'tridymite']:
|
776
|
+
Suppress = None
|
777
|
+
|
778
|
+
if Suppress is not None:
|
779
|
+
jl.Suppress = Suppress
|
780
|
+
jl.seval("Suppress = Vector{String}(Suppress)")
|
781
|
+
julia_Suppress = jl.Suppress
|
782
|
+
|
783
|
+
|
742
784
|
Results = jl.MAGEMinCalc.path(
|
743
785
|
comp=comp_julia, T_start_C=T_start_C, T_end_C=T_end_C, dt_C=dt_C,
|
744
786
|
T_C=T_C, P_start_bar=P_start_bar, P_end_bar=P_end_bar, dp_bar=dp_bar,
|
745
787
|
P_bar=P_bar, T_path_C=T_path_C_julia, P_path_bar=P_path_bar_julia, frac_xtal=Frac_solid,
|
746
|
-
Model=Model, fo2_buffer=fO2_buffer, fo2_offset=fO2_offset, find_liquidus=find_liquidus
|
788
|
+
Model=Model, fo2_buffer=fO2_buffer, fo2_offset=fO2_offset, find_liquidus=find_liquidus,
|
789
|
+
suppress = julia_Suppress
|
747
790
|
)
|
748
791
|
# Results = jl.pyconvert(dict, Results)
|
749
792
|
Results_df = dict(Results)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{PetThermoTools-0.2.42 → PetThermoTools-0.2.43}/src/PetThermoTools.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|