Skip to content

Commit

Permalink
About to release v0.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Apr 4, 2018
1 parent d615b3d commit a8447b9
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ build/
.ipython/
.jupyter/*
!.jupyter/jupyter_notebook_config.py
.*cache/
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.6.7
======
- Updated manuscript for JOSS.

v0.6.6
======
- Support for containers in ``chempy.units.unit_of``.
Expand Down
2 changes: 1 addition & 1 deletion chempy/chemistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def molar_mass(self, units=None):
--------
>>> nh4p = Substance.from_formula('NH4+') # simpler
>>> from chempy.units import default_units as u
>>> nh4p.molar_mass(u)
>>> nh4p.molar_mass(u) # doctest: +ELLIPSIS
array(18.0384511...) * g/mol
"""
Expand Down
4 changes: 2 additions & 2 deletions chempy/kinetics/ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ def get_odesys(rsys, include_params=True, substitutions=None, SymbolicSys=None,
>>> odesys, extra = get_odesys(rsys)
>>> init_conc = {'Fe+3': 1.0, 'SCN-': .3, 'FeSCN+2': 0}
>>> tout, Cout, info = odesys.integrate(5, init_conc)
>>> Cout[-1, :].round(4)
array([ 0.7042, 0.0042, 0.2958])
>>> Cout[-1, :].round(4) # doctest: +NORMALIZE_WHITESPACE
array([0.7042, 0.0042, 0.2958])
"""
if SymbolicSys is None:
Expand Down
4 changes: 2 additions & 2 deletions chempy/reactionsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class ReactionSystem(object):
>>> from chempy import Reaction
>>> r1 = Reaction({'R1': 1}, {'P1': 1}, 42.0)
>>> rsys = ReactionSystem([r1], 'R1 P1')
>>> rsys.as_per_substance_array({'R1': 2, 'P1': 3})
array([ 2., 3.])
>>> rsys.as_per_substance_array({'R1': 2, 'P1': 3}) # doctest: +NORMALIZE_WHITESPACE
array([2., 3.])
Raises
------
Expand Down
4 changes: 2 additions & 2 deletions chempy/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,8 @@ class Backend(object):
>>> np.sum([1000*pq.metre/pq.kilometre, 1])
1001.0
>>> be_np = Backend(np)
>>> be_np.sum([[1000*pq.metre/pq.kilometre, 1], [3, 4]], axis=1)
array([ 2., 7.])
>>> be_np.sum([[1000*pq.metre/pq.kilometre, 1], [3, 4]], axis=1) # doctest: +NORMALIZE_WHITESPACE
array([2., 7.])
"""

Expand Down
4 changes: 2 additions & 2 deletions chempy/util/stoich.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def decompose_yields(yields, rxns, atol=1e-10):
>>> from chempy import Reaction
>>> h2a = Reaction({'H2O': 1}, {'H2': 1, 'O': 1})
>>> h2b = Reaction({'H2O': 1}, {'H2': 1, 'H2O2': 1}, inact_reac={'H2O': 1})
>>> decompose_yields({'H2': 3, 'O': 2, 'H2O2': 1}, [h2a, h2b])
array([ 2., 1.])
>>> decompose_yields({'H2': 3, 'O': 2, 'H2O2': 1}, [h2a, h2b]) # doctest: +NORMALIZE_WHITESPACE
array([2., 1.])
Raises
------
Expand Down
Binary file modified examples/kinetics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions scripts/generate_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ sed -i "s/$MATCH/$NEW/g" doc/conf.py
sed -i "s/alabaster/sphinx_rtd_theme/g" doc/conf.py
if [[ $NARGS -eq 3 ]]; then
cat <<EOF>>doc/conf.py
context = {
'conf_py_path': '/doc/',
'github_user': '$1',
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tool:pytest]
norecursedirs = .* _* build dist conda-recipe scripts benchmarks doc deploy venv
doctest_optionflags= NORMALIZE_WHITESPACE
pep8maxlinelength=119
pep8ignore =
doc/conf.py ALL # conf.py is a generated file
Expand Down

0 comments on commit a8447b9

Please sign in to comment.