Skip to content

Commit

Permalink
add assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsmrynk committed Nov 15, 2023
1 parent cdac28e commit 320f683
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/postprocessing/postprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ def concatenate_cached_tiles(self, coordinates):
:returns: concatenated cached tiles
:rtype: gpd.GeoDataFrame
"""
assert isinstance(coordinates, np.ndarray) and coordinates.dtype == np.int32
assert len(coordinates.shape) == 2
assert coordinates.shape[-1] == 2

cached_tiles = []

pattern = re.compile(r'^(-?\d+)_(-?\d+)$')
Expand Down

0 comments on commit 320f683

Please sign in to comment.