pyEQL 1.3.0__py3-none-any.whl → 1.3.1__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.
pyEQL/solution.py CHANGED
@@ -1571,7 +1571,11 @@ class Solution(MSONable):
1571
1571
  # # use only the predominant species for each element
1572
1572
  components = {}
1573
1573
  for el, lst in self.get_components_by_element().items():
1574
- components[lst[0]] = self.get_total_amount(el, "mol").magnitude
1574
+ component = lst[0]
1575
+ ion = Ion.from_formula(component)
1576
+ el_no_oxi_state = el.split("(")[0]
1577
+ nu_el = ion.get_el_amt_dict()[el_no_oxi_state]
1578
+ components[component] = self.get_total_amount(el, "mol").magnitude / nu_el
1575
1579
  # add H+ and OH-, which would otherwise be excluded
1576
1580
  for k in ["H[+1]", "OH[-1]"]:
1577
1581
  if self.components.get(k):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyEQL
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: A python interface for solution chemistry
5
5
  Author-email: Ryan Kingsbury <kingsbury@princeton.edu>
6
6
  License-Expression: LGPL-3.0-or-later
@@ -6,7 +6,7 @@ pyEQL/functions.py,sha256=xevJri40Boi_k6JMgzL-HY3ExztbI2uto0soS9OV5ko,11451
6
6
  pyEQL/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  pyEQL/salt_ion_match.py,sha256=r60dsgBjfhzUCM2BvUIQTF6C37XTpuM5JI2F1t3Dc5A,4074
8
8
  pyEQL/solute.py,sha256=no00Rc3tRfHmyht4wm2UXA1KZhKC45tWMO5QEkZY6yg,5140
9
- pyEQL/solution.py,sha256=qP9w_bXRm3sjFksMPo4XqAcJH2FufmmlrIir7hUpnkM,112869
9
+ pyEQL/solution.py,sha256=w0GzHfOdborqrYa-yCoi_3Wg605lRIAoypyvp22Vx_c,113079
10
10
  pyEQL/utils.py,sha256=dMkLhFFgvL2zUgGvEZ-gtJ8ZtVO7JB2JtEnFM839ELU,7380
11
11
  pyEQL/database/geothermal.dat,sha256=kksnfcBtWdOTpNn4CLXU1Mz16cwas2WuVKpuMU8CaVI,234230
12
12
  pyEQL/database/llnl.dat,sha256=jN-a0kfUFbQlYMn2shTVRg1JX_ZhLa-tJ0lLw2YSpLU,751462
@@ -18,9 +18,9 @@ pyEQL/presets/rainwater.yaml,sha256=QG3aol2Z5HwLj-s6frN7hYNQr01qw_HR2h5f4BdAvVc,
18
18
  pyEQL/presets/seawater.yaml,sha256=Kts0vAmXSPvPzy_PJpx0RR2uSt40izxp-687Qi02oro,843
19
19
  pyEQL/presets/urine.yaml,sha256=Zpcr2Dp7xZrlLqzYk4UcMyWXlNrd2AFUexWpb8k9FEg,679
20
20
  pyEQL/presets/wastewater.yaml,sha256=zJcpp9Ye4hIw6iInsdV5bgjTNuJ8oAUVimsUgZXlG-w,502
21
- pyeql-1.3.0.dist-info/licenses/AUTHORS.md,sha256=vm40bLDv3LLqNiY0QrMfs7j8eBFg6x-5OPcu5cH4G3o,633
22
- pyeql-1.3.0.dist-info/licenses/LICENSE.txt,sha256=2Zf1F7RzbpeposgIxUydpurqNCMoMgDi2gAB65_GjwQ,969
23
- pyeql-1.3.0.dist-info/METADATA,sha256=JlfgJBpRaUHufqtTY4Tgjd8LEQwED7nuX7vzjTJs4To,6108
24
- pyeql-1.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
- pyeql-1.3.0.dist-info/top_level.txt,sha256=QMOaZjCAm_lS4Njsjh4L0B5aWnJFGQMYKhuH88CG1co,6
26
- pyeql-1.3.0.dist-info/RECORD,,
21
+ pyeql-1.3.1.dist-info/licenses/AUTHORS.md,sha256=vm40bLDv3LLqNiY0QrMfs7j8eBFg6x-5OPcu5cH4G3o,633
22
+ pyeql-1.3.1.dist-info/licenses/LICENSE.txt,sha256=2Zf1F7RzbpeposgIxUydpurqNCMoMgDi2gAB65_GjwQ,969
23
+ pyeql-1.3.1.dist-info/METADATA,sha256=z7BtyJa1xSnkSMC2c6fXkDc34lFqZVGjV9X1KiOdz_w,6108
24
+ pyeql-1.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
+ pyeql-1.3.1.dist-info/top_level.txt,sha256=QMOaZjCAm_lS4Njsjh4L0B5aWnJFGQMYKhuH88CG1co,6
26
+ pyeql-1.3.1.dist-info/RECORD,,
File without changes