Skip to content

Commit

Permalink
added weighted average test
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Nov 9, 2023
1 parent d2aa10b commit d16b5f0
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions tests/smoke/test_smoke_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,18 +320,6 @@ def test_smoke_execute_c3s_cmip6_subset_original_files(wps):
assert "data.mips.copernicus-climate.eu" in urls[0]


# def test_smoke_execute_c3s_cmip5_subset_collection_only(wps):
# inputs = [("collection", C3S_CMIP5_MON_COLLECTION)]
# urls = wps.execute("subset", inputs)
# print(urls)
# assert len(urls) == 1
# assert "tas_mon_MPI-ESM-LR_historical_r1i1p1_18500116-20051216.nc" in urls[0]
# assert (
# "https://data.mips.copernicus-climate.eu/thredds/fileServer/esg_c3s-cmip5"
# in urls[0]
# )


def test_smoke_execute_c3s_cmip6_subset_collection_only(wps):
inputs = [("collection", C3S_CMIP6_DAY_COLLECTION)]
urls = wps.execute("subset", inputs)
Expand Down Expand Up @@ -435,6 +423,13 @@ def test_smoke_execute_c3s_cordex_average_time(wps):
)


def test_smoke_execute_c3s_cmip6_weighted_average(wps):
inputs = [("collection", C3S_CMIP6_MON_COLLECTION)]
urls = wps.execute("weighted_average", inputs)
assert len(urls) == 1
assert "rlds_Amon_INM-CM5-0_ssp245_r1i1p1f1_gr1_w-avg.nc" in urls[0]


def test_smoke_execute_c3s_cmip5_orchestrate(wps):
inputs = [
("workflow", ComplexDataInput(WF_C3S_CMIP5)),
Expand Down

0 comments on commit d16b5f0

Please sign in to comment.