PetThermoTools 0.2.42__py3-none-any.whl → 0.2.43__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/Path.py CHANGED
@@ -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, convert as jlconvert
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)
@@ -5,4 +5,4 @@
5
5
  # 1) we don't load dependencies by storing it in __init__.py
6
6
  # 2) we can import it in setup.py for the same reason
7
7
  # 3) we can import it into your module
8
- __version__ = '0.2.42'
8
+ __version__ = '0.2.43'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PetThermoTools
3
- Version: 0.2.42
3
+ Version: 0.2.43
4
4
  Summary: PetThermoTools
5
5
  Home-page: https://github.com/gleesonm1/PetThermoTools
6
6
  Author: Matthew Gleeson
@@ -16,7 +16,6 @@ Requires-Dist: numpy
16
16
  Requires-Dist: matplotlib
17
17
  Requires-Dist: scikit-learn
18
18
  Requires-Dist: scipy
19
- Requires-Dist: julia
20
19
  Requires-Dist: tinynumpy
21
20
  Requires-Dist: shapely
22
21
  Requires-Dist: Thermobar
@@ -6,15 +6,15 @@ PetThermoTools/Installation.py,sha256=UfVOW1NZFdzMWPyID5u7t0KwvpJA0AqYohzidXIAwY
6
6
  PetThermoTools/Liq.py,sha256=4tOnVROXr7V6cfvZceKidFT9J20TZE3Om2oem92QC4s,36842
7
7
  PetThermoTools/MELTS.py,sha256=2WB4Y11i7yfTM5dRjEr-KrJY2_7f1kLaW4V0di6Qnew,76511
8
8
  PetThermoTools/Melting.py,sha256=D4mXTrKkoUPK8dAuHPQRAnK79owI23W7JBmUMvm1DVU,15332
9
- PetThermoTools/Path.py,sha256=jUAVvKSDuVSYRiIZbL1J21E8X4Loc2xCkRTYyl4PzG4,38179
9
+ PetThermoTools/Path.py,sha256=l_2ttEa1qP7vL1vVmbOoztpFIIjJLk4jUJTudI6nI00,39436
10
10
  PetThermoTools/Path_wrappers.py,sha256=gUxs_4Qbk4MLlLl4iySxfbfKU34588bIJAYyhHmhFdc,30177
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=gEQfVmDQZosUq8hqgOF7-NXfujY6yVc6ya0YiW2W8ZM,296
16
- PetThermoTools-0.2.42.dist-info/LICENSE.txt,sha256=-mkx4iEw8Pk1RZUvncBhGLW87Uur5JB7FBQtOmX-VP0,1752
17
- PetThermoTools-0.2.42.dist-info/METADATA,sha256=yUKuTP6xbaOHpYQ3g4D5T5qA5XyqfsB0Gs1aBTJF0YA,794
18
- PetThermoTools-0.2.42.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
19
- PetThermoTools-0.2.42.dist-info/top_level.txt,sha256=IqK8iYBR3YJozzMOTRZ8x8mU2k6x8ycoMBxZTm-I06U,15
20
- PetThermoTools-0.2.42.dist-info/RECORD,,
15
+ PetThermoTools/_version.py,sha256=68l4yYMIdTzlrR6yCoKXpHFZ6zlV-3fLMMyjvwsFwQ4,296
16
+ PetThermoTools-0.2.43.dist-info/LICENSE.txt,sha256=-mkx4iEw8Pk1RZUvncBhGLW87Uur5JB7FBQtOmX-VP0,1752
17
+ PetThermoTools-0.2.43.dist-info/METADATA,sha256=z0BojW2W4owvI6xRKBBidPHO-o7w83BXy-5AtFQVE1c,773
18
+ PetThermoTools-0.2.43.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
19
+ PetThermoTools-0.2.43.dist-info/top_level.txt,sha256=IqK8iYBR3YJozzMOTRZ8x8mU2k6x8ycoMBxZTm-I06U,15
20
+ PetThermoTools-0.2.43.dist-info/RECORD,,