Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Jun 7, 2024
1 parent 389b961 commit 013df33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions geoutils/pointcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def _grid_pointcloud(

# Input checks
if (
not isinstance(grid_coords, tuple)
or not (isinstance(grid_coords[0], np.ndarray) and grid_coords[0].ndim == 1)
or not (isinstance(grid_coords[1], np.ndarray) and grid_coords[1].ndim == 1)
not isinstance(grid_coords, tuple)
or not (isinstance(grid_coords[0], np.ndarray) and grid_coords[0].ndim == 1)
or not (isinstance(grid_coords[1], np.ndarray) and grid_coords[1].ndim == 1)
):
raise TypeError("Input grid coordinates must be 1D arrays.")

Expand Down
3 changes: 1 addition & 2 deletions tests/test_pointcloud.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Test module for point cloud functionalities."""

import pytest
import geopandas as gpd
import numpy as np
import pytest
import rasterio as rio
from shapely import geometry

Expand Down Expand Up @@ -113,4 +113,3 @@ def test_grid_pc(self) -> None:
with pytest.raises(ValueError, match="Grid coordinates must be regular*"):
grid_coords[0][0] += 1
Raster.from_pointcloud_regular(pc, grid_coords=grid_coords) # type: ignore

0 comments on commit 013df33

Please sign in to comment.