Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 0 additions & 81 deletions .github/workflows/legacy-ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions docs/release_notes/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Version updates
.. toctree::
:maxdepth: 1

version_0.14_updates
version_0.13_updates
version_0.12_updates
version_0.11_updates
Expand Down
11 changes: 11 additions & 0 deletions docs/release_notes/version_0.14_updates.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Version 0.14 Updates
/////////////////////////


Version 0.14.0
===============

CDS/ADS retrievals
+++++++++++++++++++++

- The date request parameter(s) in the :ref:`data-sources-cds` and :ref:`data-sources-ads` sources are now passed without any normalization to the underlying API. Previously, date parameters were normalised using the same set of rules as for :ref:`data-sources-mars` requests leading to inconsistencies. This is a breaking change enforcing the use of the CDS date syntax in :ref:`data-sources-cds` and :ref:`data-sources-ads` retrievals (:pr:`605`)
14 changes: 14 additions & 0 deletions tests/normalize/test_normalize_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,20 @@ def test_normalize_dates_multiple():
@pytest.mark.parametrize(
"date,expected",
[
(
"20200511/20200512",
[
"2020.05.11",
"2020.05.12",
],
),
(
"20200511/20200514",
[
"2020.05.11",
"2020.05.14",
],
),
(
"20200511/TO/20200512",
[
Expand Down
10 changes: 9 additions & 1 deletion tests/sources/test_cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,18 @@ def test_cds_grib_split_on_var():
@pytest.mark.parametrize(
"date,expected_date",
[
# (
# [datetime.datetime(2012, 12, 12), datetime.datetime(2012, 12, 14)],
# [20121212, 20121212, 20121214, 20121214],
# ),
(
"2012-12-12/to/2012-12-14",
["20121212/20121214"],
[20121212, 20121212, 20121213, 20121213, 20121214, 20121214],
),
# (
# "2012-12-12/to/2012-12-14",
# [20121212, 20121212, 20121213, 20121213, 20121214, 20121214],
# ),
(
"2012-12-12/2012-12-14",
[20121212, 20121212, 20121213, 20121213, 20121214, 20121214],
Expand Down
Loading