PetThermoTools 0.2.44__tar.gz → 0.2.45__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.44/src/PetThermoTools.egg-info → PetThermoTools-0.2.45}/PKG-INFO +1 -1
  2. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/MELTS.py +14 -1
  3. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/Path_wrappers.py +3 -2
  4. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/_version.py +1 -1
  5. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45/src/PetThermoTools.egg-info}/PKG-INFO +1 -1
  6. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/LICENSE.txt +0 -0
  7. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/README.md +0 -0
  8. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/setup.cfg +0 -0
  9. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/setup.py +0 -0
  10. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/Barom.py +0 -0
  11. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/Compositions.py +0 -0
  12. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/GenFuncs.py +0 -0
  13. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/Holland.py +0 -0
  14. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/Installation.py +0 -0
  15. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/Liq.py +0 -0
  16. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/Melting.py +0 -0
  17. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/Path.py +0 -0
  18. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/PhaseDiagrams.py +0 -0
  19. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/Plotting.py +0 -0
  20. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/Saturation.py +0 -0
  21. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools/__init__.py +0 -0
  22. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools.egg-info/SOURCES.txt +0 -0
  23. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools.egg-info/dependency_links.txt +0 -0
  24. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/src/PetThermoTools.egg-info/requires.txt +0 -0
  25. {PetThermoTools-0.2.44 → PetThermoTools-0.2.45}/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.44
3
+ Version: 0.2.45
4
4
  Summary: PetThermoTools
5
5
  Home-page: https://github.com/gleesonm1/PetThermoTools
6
6
  Author: Matthew Gleeson
@@ -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):
@@ -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'], Suppress_except=False,):
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
 
@@ -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.44'
8
+ __version__ = '0.2.45'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PetThermoTools
3
- Version: 0.2.44
3
+ Version: 0.2.45
4
4
  Summary: PetThermoTools
5
5
  Home-page: https://github.com/gleesonm1/PetThermoTools
6
6
  Author: Matthew Gleeson