ewatercycle.testing
Utilities for testing eWaterCycle functionality.
Submodules
Package Contents
- ewatercycle.testing.rhine_shape() pathlib.Path
Return the path to the Rhine shapefile.
The shapefile covers the Rhine basin and is bundled with ewatercycle for use in tests, examples and documentation notebooks.
- Returns:
Path to
Rhine.shp. The accompanying.dbf,.prjand.shxfiles sit alongside it, so the parent directory must be kept intact.
Example
>>> from ewatercycle.testing import rhine_shape >>> shape = rhine_shape() >>> shape.name 'Rhine.shp'