Skip to content

Commit

Permalink
Merge pull request #96 from CSHS-CWRA/default_weights
Browse files Browse the repository at this point in the history
Add test with Canopex and fix related bugs
Add instructions on how to set conda environment variable for RAVENPY_TESTDATA_PATH
Bump version to 0.4.2
Fix problems with defaults for grid_weights and nc_index
Remove nbstripout hook
Replace a broken notebook by one demoing how to access Canopex data.
  • Loading branch information
huard authored Apr 14, 2021
2 parents 4a15293 + df9c8f6 commit f966e07
Show file tree
Hide file tree
Showing 17 changed files with 825 additions and 760 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.4.1",
"version": "0.4.2",
"use_pytest": "y",
"use_pypi_deployment_with_travis": "y",
"add_pyup_badge": "y",
Expand Down
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ repos:
hooks:
- id: pyupgrade
language_version: python3
- repo: https://github.com/kynan/nbstripout
rev: 0.3.9
hooks:
- id: nbstripout
language_version: python3
files: ".ipynb"
args: ["--keep-output"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
Expand Down
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
History
=======

0.4.2
-----
* Update to RavenC revision 318 to fix OPENDAP access for StationForcing commands
* Fix grid_weights set to None by default
* Pass nc_index to ObservationData command
* Expose more cleanly RavenC errors and warnings

0.4.1
-----

Expand Down
8 changes: 8 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ If everything was properly installed the test suite should run successfully:
(ravenpy-env) $ export RAVENPY_TESTDATA_PATH=/path/to/raven-testdata
(ravenpy-env) $ pytest tests
Or set the conda environment variable permanently:

.. code-block:: console
(ravenpy-env) $ conda env config vars set RAVENPY_TESTDATA_PATH=/path/to/raven-testdata
then deactivate and reactivate the environment.
92 changes: 46 additions & 46 deletions docs/notebooks/RavenPy.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit f966e07

Please sign in to comment.