Skip to content

Commit

Permalink
Merge pull request #90 from CSHS-CWRA/release-0.4.0
Browse files Browse the repository at this point in the history
Release 0.4.0 (routing update)
  • Loading branch information
cjauvin authored Apr 9, 2021
2 parents f369c29 + 1d78250 commit 625432f
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"project_slug": "ravenpy",
"project_short_description": "A Python wrapper to setup and run the hydrologic modelling framework Raven.",
"pypi_username": "CSHS-CWRA",
"version": "0.3.1",
"version": "0.4.0",
"use_pytest": "y",
"use_pypi_deployment_with_travis": "y",
"add_pyup_badge": "y",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ jobs:
source activate ravenpy-env
pip install -e ".[dev]"
git clone https://github.com/Ouranosinc/raven-testdata $GITHUB_WORKSPACE/raven-testdata
env RAVENPY_TESTDATA_PATH=$GITHUB_WORKSPACE/raven-testdata pytest --cov --color=yes ravenpy
env RAVENPY_TESTDATA_PATH=$GITHUB_WORKSPACE/raven-testdata pytest --cov ravenpy
17 changes: 17 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
History
=======

0.4.0
-----

This is an interim version making one step toward semi-distributed
modeling support. Model configuration is still in flux and will be
significantly modified with 0.5. The major change in this version is
that model configuration supports passing multiple HRU objects,
instead of simply passing area, latitude, longitude and elevation for
a single HRU.

* GR4JCN emulator now supports routing mode.
* Add BLENDED model emulator.
* DAP links for forcing files are now supported.
* Added support for `tox`-based localized installation and testing with python-pip.
* Now supporting Python 3.7, 3.8, and 3.9.
* Build testing for `pip` and `conda`-based builds with GitHub CI.

0.3.1
-----

Expand Down
2 changes: 1 addition & 1 deletion ravenpy/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

__author__ = """David Huard"""
__email__ = "huard.david@ouranos.ca"
__version__ = "0.3.1"
__version__ = "0.4.0"
15 changes: 8 additions & 7 deletions ravenpy/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self, workdir: Union[str, Path] = None):
self.rvi = RV()
self.rvp = RV()
self.rvc = RV()
self.rvt = RVT()
self.rvt = RV()
self.rvh = RV()
self.rvd = RV() # rvd is for derived parameters

Expand Down Expand Up @@ -461,13 +461,14 @@ def run(self, ts, overwrite=False, **kwds):
self.assign(key, val[self.psim])

# Forcing commands
self.rvt.update(
ncdata.extract(
rvh=self.rvh,
rvt=self.rvt,
nc_index=pdict["nc_index"][self.psim],
if isinstance(self.rvt, RVT):
self.rvt.update(
ncdata.extract(
rvh=self.rvh,
rvt=self.rvt,
nc_index=pdict["nc_index"][self.psim],
)
)
)

cmd = self.setup_model_run(tuple(map(Path, ts)))

Expand Down
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.3.1
current_version = 0.4.0
commit = False
tag = False

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def run(self):
gis=gis_requirements,
),
url="https://github.com/CSHS-CWRA/ravenpy",
version="0.3.1",
version="0.4.0",
zip_safe=False,
cmdclass={
"install": create_external_deps_install_class(install),
Expand Down

0 comments on commit 625432f

Please sign in to comment.