Skip to content

Commit

Permalink
Add return statement for shift
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Jan 30, 2024
1 parent 35181a1 commit 1b06f25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geoutils/raster/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2415,6 +2415,8 @@ def shift(
:param yoff: Translation y offset.
:param distance_unit: Distance unit, either 'georeferenced' (default) or 'pixel'.
:param inplace: Whether to modify the raster in-place.
:returns: Shifted raster (or None if inplace).
"""
if distance_unit not in ["georeferenced", "pixel"]:
raise ValueError("Argument 'distance_unit' should be either 'pixel' or 'georeferenced'.")
Expand Down

0 comments on commit 1b06f25

Please sign in to comment.