From 298c36d61b55a252b3a3338b1201c395d41c390e Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 12 Sep 2024 00:07:30 +0000 Subject: [PATCH] fixup: Format Python code with Black --- src/geofabrics/dem.py | 7 +++++-- src/geofabrics/processor.py | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/geofabrics/dem.py b/src/geofabrics/dem.py index 28f6c783..c8f0c462 100644 --- a/src/geofabrics/dem.py +++ b/src/geofabrics/dem.py @@ -1331,8 +1331,11 @@ def interpolate_rivers( json.dumps(pdal_pipeline_instructions), [edge_points] ) pdal_pipeline.execute() - - if len(river_points) < k_nearest_neighbours or len(edge_points) < k_nearest_neighbours: + + if ( + len(river_points) < k_nearest_neighbours + or len(edge_points) < k_nearest_neighbours + ): logging.info( f"Fewer river or edge points than the default expected {k_nearest_neighbours}. " f"Updating k_nearest_neighbours to {min(len(river_points), len(edge_points))}." diff --git a/src/geofabrics/processor.py b/src/geofabrics/processor.py index c055ef6d..7fa4dff4 100644 --- a/src/geofabrics/processor.py +++ b/src/geofabrics/processor.py @@ -170,7 +170,10 @@ def create_results_folder(self): results_folder.mkdir(parents=True, exist_ok=True) def save_dem( - self, filename: pathlib.Path, dataset: xarray.Dataset, generator: dem.DemBase, + self, + filename: pathlib.Path, + dataset: xarray.Dataset, + generator: dem.DemBase, compression: int, ): """Save out the dem/geofabrics labelled array.