Skip to content

Commit

Permalink
Bump version: 0.9.0 → 0.9.1
Browse files Browse the repository at this point in the history
* use clisops v0.9.4

* update changes

* update conda spec

* update clisops 0.9.5

* update spec file

* update changes

* added smoke test for subset level

* Bump version: 0.9.0 → 0.9.1
  • Loading branch information
cehbrecht authored Dec 14, 2022
1 parent bd8060e commit f0506e7
Show file tree
Hide file tree
Showing 10 changed files with 187 additions and 162 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"project_repo_name": "rook",
"project_readthedocs_name": "rook",
"project_short_description": "A WPS service for roocs.",
"version": "0.9.0",
"version": "0.9.1",
"open_source_license": "Apache Software License 2.0",
"http_port": "5000",
"_copy_without_render": [
Expand Down
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changes
*******

0.9.1 (2022-12-14)
==================

* Updated to clisops 0.9.5 with patches for `subset_level_by_values`.

0.9.0 (2022-09-27)
==================

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# vim:set ft=dockerfile:
FROM continuumio/miniconda3
MAINTAINER https://github.com/roocs/rook
LABEL Description="rook WPS" Vendor="Birdhouse" Version="0.9.0"
LABEL Description="rook WPS" Vendor="Birdhouse" Version="0.9.1"

# Update Debian system
RUN apt-get update && apt-get install -y \
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
# The short X.Y version.
# version = "0.1.0"
# The full version, including alpha/beta/rc tags.
release = "0.9.0"
release = "0.9.1"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
- netcdf4>=1.4
- bottleneck>=1.3.1,<1.4
- daops>=0.8.1,<0.9
- clisops>=0.9.2,<0.10
- clisops>=0.9.5,<0.10
- roocs-utils>=0.6.3,<0.7
# workflow
- networkx
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ psutil
# daops
daops>=0.8.1,<0.9
#daops @ git+https://github.com/roocs/daops@fix-xarray#egg=daops
clisops>=0.9.2,<0.10
clisops>=0.9.5,<0.10
#clisops @ git+https://github.com/roocs/clisops@master#egg=clisops
roocs-utils>=0.6.3,<0.7
xarray>=0.20,<0.22
Expand Down
2 changes: 1 addition & 1 deletion rook/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

__author__ = """Carsten Ehbrecht"""
__email__ = "[email protected]"
__version__ = "0.9.0"
__version__ = "0.9.1"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.9.0
current_version = 0.9.1
commit = True
tag = True

Expand Down
312 changes: 157 additions & 155 deletions spec-list.txt

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions tests/smoke/test_smoke_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"c3s-cmip6.CMIP.MPI-M.MPI-ESM1-2-HR.historical.r1i1p1f1.Amon.tasmin.gn.v20190710"
)

C3S_CMIP6_MON_LEVEL_COLLECTION = (
"c3s-cmip6.CMIP.CSIRO-ARCCSS.ACCESS-CM2.historical.r1i1p1f1.Amon.ta.gn.v20191108"
)

C3S_CMIP5_DAY_COLLECTION = (
"c3s-cmip5.output1.ICHEC.EC-EARTH.historical.day.atmos.day.r1i1p1.tas.latest"
)
Expand Down Expand Up @@ -70,6 +74,7 @@
}
)


WF_C3S_CORDEX = json.dumps(
{
"doc": "subset on c3s-cordex",
Expand Down Expand Up @@ -159,6 +164,19 @@ def test_smoke_execute_c3s_cmip6_subset(wps, tmp_path):
assert "rlds" in ds.variables


def test_smoke_execute_c3s_cmip6_subset_level(wps, tmp_path):
inputs = [
("collection", C3S_CMIP6_MON_LEVEL_COLLECTION),
("time", "1850/1850"),
("time_components", "year:1850|month:jan"),
("level", "1000"),
]
urls = wps.execute("subset", inputs)
assert len(urls) == 1
ds = open_dataset(urls[0], tmp_path)
assert "ta" in ds.variables


def test_smoke_execute_c3s_cmip6_subset_metadata(wps, tmp_path):
inputs = [
("collection", C3S_CMIP6_MON_TASMIN_COLLECTION),
Expand Down

0 comments on commit f0506e7

Please sign in to comment.