PetThermoTools 0.2.35__tar.gz → 0.2.36__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.
Files changed (25) hide show
  1. {PetThermoTools-0.2.35/src/PetThermoTools.egg-info → PetThermoTools-0.2.36}/PKG-INFO +1 -1
  2. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/MELTS.py +8 -4
  3. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/Path.py +4 -1
  4. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/_version.py +1 -1
  5. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36/src/PetThermoTools.egg-info}/PKG-INFO +1 -1
  6. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/LICENSE.txt +0 -0
  7. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/README.md +0 -0
  8. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/setup.cfg +0 -0
  9. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/setup.py +0 -0
  10. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/Barom.py +0 -0
  11. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/Compositions.py +0 -0
  12. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/GenFuncs.py +0 -0
  13. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/Holland.py +0 -0
  14. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/Installation.py +0 -0
  15. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/Liq.py +0 -0
  16. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/Melting.py +0 -0
  17. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/Path_wrappers.py +0 -0
  18. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/PhaseDiagrams.py +0 -0
  19. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/Plotting.py +0 -0
  20. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/Saturation.py +0 -0
  21. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools/__init__.py +0 -0
  22. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools.egg-info/SOURCES.txt +0 -0
  23. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools.egg-info/dependency_links.txt +0 -0
  24. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools.egg-info/requires.txt +0 -0
  25. {PetThermoTools-0.2.35 → PetThermoTools-0.2.36}/src/PetThermoTools.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PetThermoTools
3
- Version: 0.2.35
3
+ Version: 0.2.36
4
4
  Summary: PetThermoTools
5
5
  Home-page: https://github.com/gleesonm1/PetThermoTools
6
6
  Author: Matthew Gleeson
@@ -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
 
@@ -730,11 +730,14 @@ 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
+ T_path_C_julia = jlconvert(jl.Vector[jl.Float64], T_path_C)
735
+ P_path_bar_julia = jlconvert(jl.Vector[jl.Float64], P_path_bar)
733
736
 
734
737
  Results = jl.MAGEMinCalc.path(
735
738
  comp=comp_julia, T_start_C=T_start_C, T_end_C=T_end_C, dt_C=dt_C,
736
739
  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,
740
+ P_bar=P_bar, T_path_C=T_path_C_julia, P_path_bar=P_path_bar_julia, frac_xtal=Frac_solid,
738
741
  Model=Model, fo2_buffer=fO2_buffer, fo2_offset=fO2_offset, find_liquidus=find_liquidus
739
742
  )
740
743
  # 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.36'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PetThermoTools
3
- Version: 0.2.35
3
+ Version: 0.2.36
4
4
  Summary: PetThermoTools
5
5
  Home-page: https://github.com/gleesonm1/PetThermoTools
6
6
  Author: Matthew Gleeson