Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Feb 14, 2024
1 parent 4cf2d27 commit 83ac5fa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ scipy==1.*
tqdm
scikit-image==0.*
scikit-gstat>=1.0
geoutils==0.1.*
pip
geoutils
setuptools>=64
setuptools_scm[toml]>=8
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(), sample=10000, return_indices=True, random_state=42)
indices = gu.raster.subsample_array(
self.diff.data.flatten(), sample=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 83ac5fa

Please sign in to comment.