Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Sep 30, 2024
1 parent be8e1c5 commit d450122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/test_coreg/test_affine.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
from geoutils._typing import NDArrayNum
from geoutils.raster import RasterType
from geoutils.raster.raster import _shift_transform
from noisyopt import minimizeCompass
from scipy.ndimage import binary_dilation

from xdem import coreg, examples
from xdem.coreg.affine import AffineCoreg, _reproject_horizontal_shift_samecrs
from noisyopt import minimizeCompass


def load_examples(crop: bool = True) -> tuple[RasterType, RasterType, Vector]:
"""Load example files to try coregistration methods with."""
Expand Down
4 changes: 2 additions & 2 deletions xdem/coreg/affine.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
CoregDict,
InFitOrBinDict,
InRandomDict,
InSpecificDict,
OutAffineDict,
_bin_or_and_fit_nd,
_get_subsample_mask_pts_rst,
Expand Down Expand Up @@ -652,6 +651,7 @@ def _dh_minimize_fit_func(

return dh


def _dh_minimize_fit(
dh_interpolator: Callable[[float, float], NDArrayf],
params_fit_or_bin: InFitOrBinDict,
Expand Down Expand Up @@ -1518,7 +1518,7 @@ def _fit_rst_pts(
verbose=verbose,
params_random=params_random,
params_fit_or_bin=params_fit_or_bin,
**kwargs
**kwargs,
)

# Write output to class
Expand Down

0 comments on commit d450122

Please sign in to comment.