PetThermoTools 0.2.30__py3-none-any.whl → 0.2.31__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
@@ -911,21 +911,22 @@ def path_MELTS(Model = None, comp = None, Frac_solid = None, Frac_fluid = None,
911
911
  bulk = list(100*np.array(bulk)/np.sum(bulk))
912
912
 
913
913
  if Suppress_except is False:
914
- if Suppress == "All":
915
- melts.engine.pressure = np.random.normal(500, 500/10)
916
- melts.engine.temperature = 1200 + 200
917
- melts.engine.setBulkComposition(bulk)
918
- PL = melts.engine.calcSaturationState()
919
- for p in PL:
920
- if p != "fluid":
921
- if p != "water":
922
- melts.engine.setSystemProperties("Suppress", p)
923
- else:
924
- if type(Suppress) == list:
925
- for p in Suppress:
926
- melts.engine.setSystemProperties("Suppress", p)
914
+ if Suppress is not None:
915
+ if Suppress == "All":
916
+ melts.engine.pressure = np.random.normal(500, 500/10)
917
+ melts.engine.temperature = 1200 + 200
918
+ melts.engine.setBulkComposition(bulk)
919
+ PL = melts.engine.calcSaturationState()
920
+ for p in PL:
921
+ if p != "fluid":
922
+ if p != "water":
923
+ melts.engine.setSystemProperties("Suppress", p)
927
924
  else:
928
- melts.engine.setSystemProperties("Suppress", Suppress)
925
+ if type(Suppress) == list:
926
+ for p in Suppress:
927
+ melts.engine.setSystemProperties("Suppress", p)
928
+ else:
929
+ melts.engine.setSystemProperties("Suppress", Suppress)
929
930
  else:
930
931
  melts.engine.pressure = np.random.normal(500, 500/10)
931
932
  melts.engine.temperature = 1200 + 200
@@ -148,12 +148,12 @@ def phaseDiagram_calc(cores = None, Model = None, bulk = None, T_C = None, P_bar
148
148
  j = j + 1
149
149
 
150
150
  for i in range(cores):
151
- # if "MELTS" in Model:
152
- T_path_C = np.array(subarrays_T[i])#T_flat[i*A:(i+1)*A]
153
- P_path_bar = np.array(subarrays_P[i])#P_flat[i*A:(i+1)*A]
154
- # else:
155
- # T_path_C = subarrays_T[i]
156
- # P_path_bar = subarrays_P[i]
151
+ if "MELTS" in Model:
152
+ T_path_C = T_flat[i*A:(i+1)*A]
153
+ P_path_bar = P_flat[i*A:(i+1)*A]
154
+ else:
155
+ T_path_C = np.array(subarrays_T[i])
156
+ P_path_bar = np.array(subarrays_P[i])
157
157
 
158
158
 
159
159
  if "MELTS" in Model:
@@ -191,7 +191,12 @@ def phaseDiagram_calc(cores = None, Model = None, bulk = None, T_C = None, P_bar
191
191
  # T_path_C = np.array(T_randomized)
192
192
  # P_path_bar = np.array(P_randomized)
193
193
 
194
- p = Process(target = path, args = (q,i), kwargs = {'Model': Model, 'comp': comp, 'T_path_C': T_path_C, 'P_path_bar': P_path_bar, 'fO2_buffer': fO2_buffer, 'fO2_offset': fO2_offset})
194
+ p = Process(target = path, args = (q,i), kwargs = {'Model': Model, 'comp': comp,
195
+ 'T_path_C': T_path_C,
196
+ 'P_path_bar': P_path_bar,
197
+ 'fO2_buffer': fO2_buffer,
198
+ 'fO2_offset': fO2_offset,
199
+ 'Suppress': ['rutile', 'tridymite']})
195
200
 
196
201
  ps.append(p)
197
202
  p.start()
@@ -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.30'
8
+ __version__ = '0.2.31'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PetThermoTools
3
- Version: 0.2.30
3
+ Version: 0.2.31
4
4
  Summary: PetThermoTools
5
5
  Home-page: https://github.com/gleesonm1/PetThermoTools
6
6
  Author: Matthew Gleeson
@@ -4,16 +4,16 @@ 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=I-vYp2i7CpQjzoo-nZ8gQNTP5jrao6pZtmkmwLtjodY,35043
7
- PetThermoTools/MELTS.py,sha256=wx_j2a63sJcm8dRePVrLzc0XcpngAr7mLHewPe4ODUs,72261
7
+ PetThermoTools/MELTS.py,sha256=-nkyo3yx7dZXVnRwZhlMRGCc5SkYSm1nP3qDbLDNNyY,72354
8
8
  PetThermoTools/Melting.py,sha256=iQpSXXDhwfEUTlHa80-XFK1lahb_VNrLW8ISbVCE8lY,10773
9
9
  PetThermoTools/Path.py,sha256=RChQYqDayqc0hVugmX3j3uE1x2BvWIfcINFqcqwrRxw,32642
10
10
  PetThermoTools/Path_wrappers.py,sha256=_0pBs_cK2hICxAHkYxKXICUnUEBSiUg07-qhgBeuTdc,26555
11
- PetThermoTools/PhaseDiagrams.py,sha256=J3-h5N2K2uByahgWuBxkvajpx7j_2MJ7QuxEswp3f6Y,30558
11
+ PetThermoTools/PhaseDiagrams.py,sha256=8S_BcqggBzfUbiCPcsJRWFBenGL4tcCevte3-ATQjQI,30884
12
12
  PetThermoTools/Plotting.py,sha256=biM4QJFCH6xVDpK-nG2oAIGIFFJCzBt5Uez6XzTFiGY,28107
13
13
  PetThermoTools/Saturation.py,sha256=XXY6fKVouQM3RLgQgXur4xSq7_uGp7bCw_k7NNlWYi8,14095
14
14
  PetThermoTools/__init__.py,sha256=PbiwQj_mNNEwuIZOLETmtMMshiXa50wjCA6mfvpOpOs,2393
15
- PetThermoTools/_version.py,sha256=7vyciDXWjHOhht0C35bFPf-Y7bGUJN5nWlLPX5LfaZE,296
16
- PetThermoTools-0.2.30.dist-info/METADATA,sha256=20BfknXMVWrNDBAHX9ypKqU_y1B70KHD7ve3xrpbiw4,796
17
- PetThermoTools-0.2.30.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
18
- PetThermoTools-0.2.30.dist-info/top_level.txt,sha256=IqK8iYBR3YJozzMOTRZ8x8mU2k6x8ycoMBxZTm-I06U,15
19
- PetThermoTools-0.2.30.dist-info/RECORD,,
15
+ PetThermoTools/_version.py,sha256=x3oJ2coFvekDMGQwrW7LzNxduPT9SxWIZWCKamBahjQ,296
16
+ PetThermoTools-0.2.31.dist-info/METADATA,sha256=TDZlBVXnbinSw2bKIR_YvA9KJqR4w2XxlqSGVEe4klg,796
17
+ PetThermoTools-0.2.31.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
18
+ PetThermoTools-0.2.31.dist-info/top_level.txt,sha256=IqK8iYBR3YJozzMOTRZ8x8mU2k6x8ycoMBxZTm-I06U,15
19
+ PetThermoTools-0.2.31.dist-info/RECORD,,