Skip to content

Commit 7a39d72

Browse files
authored
remove decorator that is not compatible with all CDS datasets (#605)
* remove decorator that is not compatible with all CDS datasets
1 parent 2d19c9f commit 7a39d72

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/earthkit/data/sources/cds.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ def retrieve(target, args):
145145
return return_object
146146

147147
@staticmethod
148-
@normalize("date", "date-list(%Y-%m-%d)")
149148
@normalize("area", "bounding-box(list)")
150149
def _normalize_request(**kwargs):
151150
return kwargs

tests/sources/test_cds.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ def test_cds_grib_split_on_var():
128128
"2012-12-12/to/2012-12-14",
129129
[20121212, 20121212, 20121213, 20121213, 20121214, 20121214],
130130
),
131+
(
132+
"2012-12-12/2012-12-14",
133+
[20121212, 20121212, 20121213, 20121213, 20121214, 20121214],
134+
),
135+
(
136+
["2012-12-12/2012-12-14"],
137+
[20121212, 20121212, 20121213, 20121213, 20121214, 20121214],
138+
),
131139
(
132140
["2014-05-12", "2014-05-13", "2014-05-14"],
133141
[20140512, 20140512, 20140513, 20140513, 20140514, 20140514],

0 commit comments

Comments
 (0)