Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Feb 17, 2024
1 parent 6fc1dc0 commit dd9b20c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/test_spatialstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def test_nd_binning(self) -> None:
"""Check that the nd_binning function works adequately and save dataframes to files for later tests"""

# Subsampler
indices = gu.raster.subsample_array(self.diff.data.flatten(), subsample=10000, return_indices=True, random_state=42)
indices = gu.raster.subsample_array(
self.diff.data.flatten(), subsample=10000, return_indices=True, random_state=42
)

# 1D binning, by default will create 10 bins
df = xdem.spatialstats.nd_binning(
Expand Down
2 changes: 1 addition & 1 deletion xdem/coreg/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
RasterType,
get_array_and_mask,
raster,
subsample_array,
subdivide_array,
subsample_array,
)
from tqdm import tqdm

Expand Down
8 changes: 7 additions & 1 deletion xdem/spatialstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
import numba
import numpy as np
import pandas as pd
from geoutils.raster import Mask, Raster, RasterType, get_array_and_mask, subsample_array
from geoutils.raster import (
Mask,
Raster,
RasterType,
get_array_and_mask,
subsample_array,
)
from geoutils.vector import Vector, VectorType
from numpy.typing import ArrayLike
from scipy import integrate
Expand Down

0 comments on commit dd9b20c

Please sign in to comment.