Skip to content

Commit

Permalink
prepare release v059 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkEilander authored Dec 19, 2024
1 parent 13b96fc commit 3e6f0c8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Change Log
in development
**************

0.6.0 (19-12-2024)
0.5.9 (19-12-2024)
********************
* Fixed numpy 2.0 compatibility issues
* Fixed bug in strahler stream order method when more than two streams meet.
Expand Down
25 changes: 20 additions & 5 deletions pyflwdir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
"""Fast methods to work with hydro- and topography data in pure Python."""

# version number without 'v' at start
__version__ = "0.5.8"
__version__ = "0.5.9"

# submodules
from .flwdir import *
from .pyflwdir import *
from .dem import *
from .core_nextxy import *
from . import gis_utils, regions

# public functions
from .core_nextxy import read_nextxy
from .dem import fill_depressions, slope
from .flwdir import Flwdir, from_dataframe
from .pyflwdir import FlwdirRaster, from_array, from_dem

__all__ = [
"Flwdir",
"FlwdirRaster",
"from_array",
"from_dataframe",
"from_dem",
"read_nextxy",
"gis_utils",
"regions",
"slope",
"fill_depressions",
]
4 changes: 2 additions & 2 deletions pyflwdir/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ def slope(elevtn, nodata=-9999.0, latlon=False, transform=gis_utils.IDENTITY):
"""Returns the local gradient
The slope is calculated on the basis of the dem in a 3 x 3 cell window, using 2nd order partial derivatives.
The slope [m/m] is given as the increase in height per distance in horizontal direction.
The slope [m/m] is given as the increase in height per distance in horizontal direction.
Parameters
----------
elevnt : 1D array of float
Expand Down

0 comments on commit 3e6f0c8

Please sign in to comment.