PetThermoTools 0.2.35__py3-none-any.whl → 0.2.37__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 CHANGED
@@ -1114,7 +1114,8 @@ def path_MELTS(Model = None, comp = None, Frac_solid = None, Frac_fluid = None,
1114
1114
  else:
1115
1115
  melts.engine.calcEquilibriumState(2,0)
1116
1116
  except:
1117
- trail = False
1117
+ if trail is not None:
1118
+ trail = False
1118
1119
  # if trail is not None:
1119
1120
  # return Results, trail
1120
1121
  # else:
@@ -1128,7 +1129,8 @@ def path_MELTS(Model = None, comp = None, Frac_solid = None, Frac_fluid = None,
1128
1129
  else:
1129
1130
  melts.engine.calcEquilibriumState(3,0)
1130
1131
  except:
1131
- trail = False
1132
+ if trail is not None:
1133
+ trail = False
1132
1134
  # return Results
1133
1135
  break
1134
1136
 
@@ -1136,7 +1138,8 @@ def path_MELTS(Model = None, comp = None, Frac_solid = None, Frac_fluid = None,
1136
1138
  try:
1137
1139
  melts.engine.calcEquilibriumState(4,0)
1138
1140
  except:
1139
- trail = False
1141
+ if trail is not None:
1142
+ trail = False
1140
1143
  # return Results
1141
1144
  break
1142
1145
 
@@ -1156,7 +1159,8 @@ def path_MELTS(Model = None, comp = None, Frac_solid = None, Frac_fluid = None,
1156
1159
  try:
1157
1160
  PhaseList = ['liquid1'] + melts.engine.solidNames
1158
1161
  except:
1159
- trail = False
1162
+ if trail is not None:
1163
+ trail = False
1160
1164
  # return Results
1161
1165
  break
1162
1166
 
PetThermoTools/Path.py CHANGED
@@ -730,11 +730,21 @@ def path(q, index, *, Model = None, comp = None, Frac_solid = None, Frac_fluid =
730
730
  Frac_solid = False
731
731
 
732
732
  comp_julia = jl.seval("Dict")(comp)
733
+ # T_path_C = T_path_C.tolist()
734
+ if T_path_C is not None:
735
+ T_path_C_julia = jlconvert(jl.Vector[jl.Float64], T_path_C)
736
+ else:
737
+ T_path_C_julia = T_path_C
738
+
739
+ if P_path_bar is not None:
740
+ P_path_bar_julia = jlconvert(jl.Vector[jl.Float64], P_path_bar)
741
+ else:
742
+ P_path_bar_julia = P_path_bar
733
743
 
734
744
  Results = jl.MAGEMinCalc.path(
735
745
  comp=comp_julia, T_start_C=T_start_C, T_end_C=T_end_C, dt_C=dt_C,
736
746
  T_C=T_C, P_start_bar=P_start_bar, P_end_bar=P_end_bar, dp_bar=dp_bar,
737
- P_bar=P_bar, T_path_C=T_path_C, P_path_bar=P_path_bar, frac_xtal=Frac_solid,
747
+ P_bar=P_bar, T_path_C=T_path_C_julia, P_path_bar=P_path_bar_julia, frac_xtal=Frac_solid,
738
748
  Model=Model, fo2_buffer=fO2_buffer, fo2_offset=fO2_offset, find_liquidus=find_liquidus
739
749
  )
740
750
  # Results = jl.pyconvert(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.35'
8
+ __version__ = '0.2.37'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PetThermoTools
3
- Version: 0.2.35
3
+ Version: 0.2.37
4
4
  Summary: PetThermoTools
5
5
  Home-page: https://github.com/gleesonm1/PetThermoTools
6
6
  Author: Matthew Gleeson
@@ -4,17 +4,17 @@ PetThermoTools/GenFuncs.py,sha256=u2GWqH--Wmqd0WXHxfulEAatQb6uswjl1s9SyyoHSa8,16
4
4
  PetThermoTools/Holland.py,sha256=udBFeVUyTBpSfLIhx7Hy6o0I8ApNCDvwU_gZa0diY5w,7251
5
5
  PetThermoTools/Installation.py,sha256=UfVOW1NZFdzMWPyID5u7t0KwvpJA0AqYohzidXIAwYs,6098
6
6
  PetThermoTools/Liq.py,sha256=2kdU8r00Y20khwvPvCvLr6P7y2HEOvCH2cwrF_qw5u8,35541
7
- PetThermoTools/MELTS.py,sha256=CjUOJSUEoq4yXEojl77HgCj7aewhFDeSGt4ZGk3L3vs,73688
7
+ PetThermoTools/MELTS.py,sha256=DeTM8j2fJ5dAw_2DVCGfgh1R_lQB4Z5rLopKSJ1Q5xQ,73852
8
8
  PetThermoTools/Melting.py,sha256=h1-KchPFw5tI2xoOyNJUfVy_TJqTtcYiHtGuInIwzio,11017
9
- PetThermoTools/Path.py,sha256=u2PNtgnqsXbiWvpj-shSjzxiC5kLus9aIzsq_YLjRfY,38220
9
+ PetThermoTools/Path.py,sha256=tMxBXiXlcHPMEsEg2-YpaVFh1c1tFhP5hPEVARfbkL0,38597
10
10
  PetThermoTools/Path_wrappers.py,sha256=_0pBs_cK2hICxAHkYxKXICUnUEBSiUg07-qhgBeuTdc,26555
11
11
  PetThermoTools/PhaseDiagrams.py,sha256=8S_BcqggBzfUbiCPcsJRWFBenGL4tcCevte3-ATQjQI,30884
12
12
  PetThermoTools/Plotting.py,sha256=IMYYusZy6REQATG9NI3dGlGs6h3vQ48aJHkZnHmSDDY,28924
13
13
  PetThermoTools/Saturation.py,sha256=XXY6fKVouQM3RLgQgXur4xSq7_uGp7bCw_k7NNlWYi8,14095
14
14
  PetThermoTools/__init__.py,sha256=PbiwQj_mNNEwuIZOLETmtMMshiXa50wjCA6mfvpOpOs,2393
15
- PetThermoTools/_version.py,sha256=Yz_zSUyefR3Q96ONxPsaaqcFw6TTx12jT1iGtXcC84o,296
16
- PetThermoTools-0.2.35.dist-info/LICENSE.txt,sha256=-mkx4iEw8Pk1RZUvncBhGLW87Uur5JB7FBQtOmX-VP0,1752
17
- PetThermoTools-0.2.35.dist-info/METADATA,sha256=UyTbMSzbIvHSV0GGsJRDvkqlp1P7jAU27wNbIK8MyR4,796
18
- PetThermoTools-0.2.35.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
19
- PetThermoTools-0.2.35.dist-info/top_level.txt,sha256=IqK8iYBR3YJozzMOTRZ8x8mU2k6x8ycoMBxZTm-I06U,15
20
- PetThermoTools-0.2.35.dist-info/RECORD,,
15
+ PetThermoTools/_version.py,sha256=4mDaaO_uZuxZxGlV6b9ORssmfFqMyYLBxGtVn0_ha3k,296
16
+ PetThermoTools-0.2.37.dist-info/LICENSE.txt,sha256=-mkx4iEw8Pk1RZUvncBhGLW87Uur5JB7FBQtOmX-VP0,1752
17
+ PetThermoTools-0.2.37.dist-info/METADATA,sha256=2lCbI_ecJwl3J5nfvHiwMk1UJjf1AAQ7HQVS8X3zqkc,796
18
+ PetThermoTools-0.2.37.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
19
+ PetThermoTools-0.2.37.dist-info/top_level.txt,sha256=IqK8iYBR3YJozzMOTRZ8x8mU2k6x8ycoMBxZTm-I06U,15
20
+ PetThermoTools-0.2.37.dist-info/RECORD,,