Skip to content

Commit

Permalink
fixup: Format Python code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 12, 2024
1 parent e967cbf commit 298c36d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/geofabrics/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))}."
Expand Down
5 changes: 4 additions & 1 deletion src/geofabrics/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 298c36d

Please sign in to comment.