pyEQL 1.1.6__py3-none-any.whl → 1.3.0__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/__init__.py CHANGED
@@ -40,7 +40,7 @@ ureg.autoconvert_offset_to_baseunit = True
40
40
  # activate the "chemistry" context globally
41
41
  ureg.enable_contexts("chemistry")
42
42
  # set the default string formatting for pint quantities
43
- ureg.default_format = "P~"
43
+ ureg.formatter.default_format = "P~"
44
44
 
45
45
  # create a Store for the default database
46
46
  json_db_file = files("pyEQL") / "database" / "pyeql_db.json"
@@ -34,7 +34,7 @@ def _debye_parameter_B(temperature: str = "25 degC") -> Quantity:
34
34
 
35
35
  Returns:
36
36
  The parameter B for use in extended Debye-Huckel equation (base e). For base 10,
37
- divide the resulting value by 2.303. Note that A is often given in base 10 terms
37
+ divide the resulting value by 2.303. Note that B is often given in base 10 terms
38
38
  in older textbooks and reference material (0.3281 at 25 degC).
39
39
 
40
40
  Notes:
@@ -137,11 +137,11 @@ def _debye_parameter_osmotic(temperature="25 degC"):
137
137
  .. math:: A^{\phi} = {1 \over 3} A^{\gamma}
138
138
 
139
139
  References:
140
- .. [kim] Kim, Hee-Talk and Frederick, William Jr, 1988. "Evaluation of Pitzer Ion Interaction Parameters of Aqueous Electrolytes at 25 C. 1. Single Salt Parameters,"
141
- *J. Chemical Engineering Data* 33, pp.177-184.
140
+ .. [kim] Kim, Hee-Talk and Frederick, William Jr, 1988. "Evaluation of Pitzer Ion Interaction Parameters of
141
+ Aqueous Electrolytes at 25 C. 1. Single Salt Parameters," *J. Chemical Engineering Data* 33, pp.177-184.
142
142
 
143
143
  .. [arch] Archer, Donald G. and Wang, Peiming. "The Dielectric Constant of Water \
144
- and Debye-Huckel Limiting Law Slopes." /J. Phys. Chem. Ref. Data/ 19(2), 1990.
144
+ and Debye-Huckel Limiting Law Slopes." /J. Phys. Chem. Ref. Data/ 19(2), 1990.
145
145
 
146
146
  Examples:
147
147
  >>> _debye_parameter_osmotic() #doctest: +ELLIPSIS
@@ -166,7 +166,7 @@ def _debye_parameter_volume(temperature="25 degC"):
166
166
 
167
167
  Notes:
168
168
  Takes the value 1.8305 cm ** 3 * kg ** 0.5 / mol ** 1.5 at 25 C.
169
- This constant is calculated according to: [1]_
169
+ This constant is calculated according to: [adw90]_
170
170
 
171
171
  .. math:: A_V = -2 A_{\phi} R T \big[ \frac{3}{\epsilon} \frac{\partial \epsilon}{\partial p} \
172
172
  - \frac{1}{\rho}\frac{\partial \rho}{\partial p} \big]
@@ -180,13 +180,13 @@ def _debye_parameter_volume(temperature="25 degC"):
180
180
  of real data, but is required to give the correct result.
181
181
 
182
182
  The second term is equivalent to the inverse of the bulk modulus of water, which
183
- is taken to be 2.2 GPa. [2]_
183
+ is taken to be 2.2 GPa. [permot]_
184
184
 
185
185
  References:
186
- .. [1] Archer, Donald G. and Wang, Peiming. "The Dielectric Constant of Water and Debye-Huckel Limiting
187
- Law Slopes." J. Phys. Chem. Ref. Data/ 19(2), 1990.
186
+ .. [adw90] Archer, Donald G. and Wang, Peiming. "The Dielectric Constant of Water and Debye-Huckel Limiting
187
+ Law Slopes." J. Phys. Chem. Ref. Data/ 19(2), 1990.
188
188
 
189
- .. [2] http://hyperphysics.phy-astr.gsu.edu/hbase/permot3.html
189
+ .. [permot] http://hyperphysics.phy-astr.gsu.edu/hbase/permot3.html
190
190
 
191
191
  See Also:
192
192
  :func:`_debye_parameter_osmotic`