Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
msorvoja committed Jul 27, 2023
1 parent 7859045 commit 1ebb71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eis_toolkit/vector_processing/kriging_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def kriging(
Args:
data: GeoDataFrame containing the input data.
resolution: Size of the output grid.
limits: Limits of the output grid.
extent: Limits of the output grid.
Returns:
Grid containing the interpolated values and metadata.
Expand All @@ -60,7 +60,7 @@ def kriging(
if data.empty:
raise EmptyDataFrameException("The input GeoDataFrame is empty.")

if sum(resolution) <= 0:
if resolution[0] <= 0 or resolution[1] <= 0:
raise InvalidParameterValueException("The resolution must be greater than zero.")

if False in set(data.geometry.has_z):
Expand Down

0 comments on commit 1ebb71e

Please sign in to comment.