Skip to content

Commit

Permalink
Add release notes for version 0.2.0 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorkertesz authored Nov 4, 2024
1 parent 3b404c0 commit ef58809
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"autoapi.extension",
"sphinx_issues",
]

# autodoc configuration
Expand All @@ -62,6 +63,9 @@
napoleon_numpy_docstring = True
napoleon_preprocess_types = True

# Path to GitHub repo {group}/{project} (note that `group` is the GitHub user or organization)
issues_github_path = "ecmwf/earthkit-meteo"

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

Expand Down
1 change: 1 addition & 0 deletions docs/release_notes/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Release notes
.. toctree::
:maxdepth: 1

version_0.2_updates
version_0.1_updates
15 changes: 15 additions & 0 deletions docs/release_notes/version_0.2_updates.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Version 0.2 Updates
/////////////////////////


Version 0.2.0
===============

New features
+++++++++++++++

- Added the ``eps`` and ``out`` keywords arguments to control zero humidity in the following methods (:pr:`23`):

- :py:meth:`dewpoint_from_specific_humidity <meteo.thermo.array.dewpoint_from_specific_humidity>`
- :py:meth:`dewpoint_from_relative_humidity <meteo.thermo.array.dewpoint_from_relative_humidity>`
- :py:meth:`temperature_from_saturation_vapour_pressure <meteo.thermo.array.temperature_from_saturation_vapour_pressure>`
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ sphinx-rtd-theme
nbsphinx
setuptools
sphinx-autoapi
sphinx-issues
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- sphinx-autoapi
- sphinx_rtd_theme
- sphinxcontrib-apidoc
- sphinx-issues
- nbformat
- nbconvert
- nbsphinx
Expand Down
11 changes: 7 additions & 4 deletions src/earthkit/meteo/thermo/array/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,10 +582,11 @@ def temperature_from_saturation_vapour_pressure(es, eps=1e-8, out=None):
eps: number
If ``out`` is not None, return ``out`` when ``es`` < ``eps``. If out
is None, ``eps`` is ignored and return np.nan for ``es`` values very
close to zero.
close to zero. *New in version 0.2.0*
out: number or None
If not None, return ``out`` when ``es`` < ``eps``. If None, ``eps`` is
ignored and return np.nan for ``es`` values very close to zero.
*New in version 0.2.0*
Returns
Expand Down Expand Up @@ -786,10 +787,11 @@ def dewpoint_from_relative_humidity(t, r, eps=1e-8, out=None):
eps: number
If ``out`` is not None, return ``out`` when ``r`` < ``eps``.
If out is None, ``eps`` is ignored and return np.nan for ``r``
values very close to zero.
values very close to zero. *New in version 0.2.0*
out: number or None
If not None, return ``out`` when ``r`` < ``eps``. If None, ``eps`` is
ignored and return np.nan for ``r`` values very close to zero.
*New in version 0.2.0*
Returns
-------
Expand Down Expand Up @@ -831,7 +833,7 @@ def dewpoint_from_relative_humidity(t, r, eps=1e-8, out=None):


def dewpoint_from_specific_humidity(q, p, eps=1e-8, out=None):
r"""Computes the dewpoint temperature from specific humidity.
r"""Compute the dewpoint temperature from specific humidity.
Parameters
----------
Expand All @@ -842,10 +844,11 @@ def dewpoint_from_specific_humidity(q, p, eps=1e-8, out=None):
eps: number
If ``out`` is not None, return ``out`` when ``q`` < ``eps``.
If out is None, ``eps`` is ignored and return np.nan for ``q``
values very close to zero.
values very close to zero. *New in version 0.2.0*
out: number or None
If not None, return ``out`` when ``q`` < ``eps``. If None, ``eps`` is
ignored and return np.nan for ``q`` values very close to zero.
*New in version 0.2.0*
Returns
-------
Expand Down
1 change: 1 addition & 0 deletions tests/environment-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- sphinx-autoapi
- sphinx_rtd_theme
- sphinxcontrib-apidoc
- sphinx-issues
- nbformat
- nbconvert
- nbsphinx
Expand Down

0 comments on commit ef58809

Please sign in to comment.