Skip to content

Commit

Permalink
qa
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Sep 12, 2023
1 parent 59e63ff commit d9dbac8
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion climetlab_s2s_ai_challenge/availability.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def s2s_availability_parser(v):

# do not use date in availability because type='date-list' and availability are not yet implemented in climetlab
# if "alldates" in v:
# dates = list(pd.date_range(**v["alldates"]))
Expand Down
1 change: 0 additions & 1 deletion climetlab_s2s_ai_challenge/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

def benchmark_builder(datasetname):
class Benchmark(Dataset):

terms_of_use = (
"By downloading data from this dataset, you agree to the terms and conditions defined at "
"https://apps.ecmwf.int/datasets/data/s2s/licence/. "
Expand Down
2 changes: 0 additions & 2 deletions climetlab_s2s_ai_challenge/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@


class FieldS2sDataset(S2sDataset):

dataset = None

@availability("input.yaml", parser=s2s_availability_parser)
Expand Down Expand Up @@ -137,7 +136,6 @@ def _load(self, request):

class Zarr:
def _load(self, request, *args, **kwargs):

from climetlab.utils.patterns import Pattern

request.pop("date")
Expand Down
1 change: 0 additions & 1 deletion climetlab_s2s_ai_challenge/s2s_mergers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def rename_without_overwrite(ds, before, after):


def _roundtrip(ds, strict_check=True, copy_filename=None, verbose=False):

if not copy_filename:
# import uuid
# uniq = uuid.uuid4()
Expand Down
2 changes: 0 additions & 2 deletions tests/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def test_info():


def test_get_param_list():

lst = Info("training-input").get_param_list(origin="ncep", fctype="hindcast")
assert len(lst) == 19
assert lst[0] == "t2m"
Expand All @@ -41,7 +40,6 @@ def test_get_param_list():


def test_get_all_dates():

lst = Info("training-input")._get_config("alldates", origin="ncep")
assert len(lst) == 51
assert lst[0] == pd.Timestamp("2010-01-07 00:00:00")
Expand Down
4 changes: 0 additions & 4 deletions tests/test_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


def short_print(ds):

print(dict(ds.dims), list(ds.keys()))


Expand All @@ -28,7 +27,6 @@ def test_merge_2020_01_02():


def merge(date):

dslist = []
ds = cml.load_dataset(
"s2s-ai-challenge-forecast-input",
Expand Down Expand Up @@ -62,7 +60,6 @@ def merge(date):


def merge_multiple_dates(dates, format1, format2):

dslist = []
for date in dates:
ds = cml.load_dataset(
Expand Down Expand Up @@ -97,7 +94,6 @@ def merge_multiple_dates(dates, format1, format2):


def test_get_obs_merge_concat():

cmlds = cml.load_dataset(
"s2s-ai-challenge-test-output-reference",
date=20200312,
Expand Down
1 change: 0 additions & 1 deletion tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@


def notebooks_list():

notebooks = []
for path in os.listdir(EXAMPLES):
if not path.startswith("demo_"): # test only demo notebooks
Expand Down
4 changes: 0 additions & 4 deletions tests/test_observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


def test_test_get_rain_obs():

cmlds = cml.load_dataset(
"s2s-ai-challenge-test-output-reference",
date=20200312,
Expand All @@ -15,7 +14,6 @@ def test_test_get_rain_obs():


def test_test_get_rain_obs_2():

cmlds = cml.load_dataset(
"s2s-ai-challenge-training-output-reference",
date=[20200102, 20200312],
Expand All @@ -36,7 +34,6 @@ def test_train_get_rain_obs():


def test_test_get_t2m_obs():

cmlds = cml.load_dataset(
"s2s-ai-challenge-test-output-reference",
date=20200312,
Expand Down Expand Up @@ -77,7 +74,6 @@ def test_train_get_t2m_obs():


def test_get_obs():

cmlds = cml.load_dataset(
"s2s-ai-challenge-test-output-reference",
date=20200312,
Expand Down

0 comments on commit d9dbac8

Please sign in to comment.