Skip to content

Commit

Permalink
Bring back type checking for _prepare_rasters
Browse files Browse the repository at this point in the history
  • Loading branch information
drnextgis committed Feb 14, 2021
1 parent 4ad3f84 commit d8d2fb1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions telluric/georaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,14 @@ def key(rs):
return rasters_final


def _prepare_rasters(rasters, merge_strategy, first, resampling=Resampling.nearest, crop=True):
# type: (List[GeoRaster2], MergeStrategy, GeoRaster2, Resampling, bool) -> Tuple[IndexedSet[str], List[Optional[_Raster]]] # noqa
def _prepare_rasters(
rasters, # type: List[GeoRaster2]
merge_strategy, # type: MergeStrategy
first, # type: GeoRaster2
resampling=Resampling.nearest, # type: Resampling
crop=True, # type: bool
):
# type: (...) -> Tuple[IndexedSet[str], List[Optional[_Raster]]]
"""Prepares the rasters according to the baseline (first) raster and the merge strategy.
The baseline (first) raster is used to crop and reproject the other rasters,
Expand Down

0 comments on commit d8d2fb1

Please sign in to comment.