Skip to content

Commit dfd3bbd

Browse files
committed
fix(cli): fix proximity computation parameter name and description
1 parent d6b8fdf commit dfd3bbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eis_toolkit/cli.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2234,12 +2234,12 @@ def proximity_computation_cli(
22342234
output_raster: OUTPUT_FILE_OPTION,
22352235
max_distance: float = typer.Option(),
22362236
max_distance_value: float = 0.0,
2237-
anomaly_value: float = 1.0,
2237+
geometries_value: float = 1.0,
22382238
base_raster: INPUT_FILE_OPTION = None,
22392239
pixel_size: float = None,
22402240
extent: Tuple[float, float, float, float] = (None, None, None, None),
22412241
):
2242-
"""Calculate distance from raster cell to nearest geometry."""
2242+
"""Calculate proximity from raster cell to nearest geometry."""
22432243
from eis_toolkit.exceptions import InvalidParameterValueException
22442244
from eis_toolkit.utilities.raster import profile_from_extent_and_pixel_size
22452245
from eis_toolkit.vector_processing.proximity_computation import proximity_computation
@@ -2267,7 +2267,7 @@ def proximity_computation_cli(
22672267
geodataframe=geodataframe,
22682268
raster_profile=profile,
22692269
maximum_distance=max_distance,
2270-
scale_range=(anomaly_value, max_distance_value),
2270+
scale_range=(geometries_value, max_distance_value),
22712271
)
22722272
profile["count"] = 1
22732273
typer.echo("Progress: 75%")

0 commit comments

Comments
 (0)