From 01e3223d4557b4c4512e5ce59e76aad7b5815458 Mon Sep 17 00:00:00 2001 From: Romain Hugonnet Date: Sat, 14 Oct 2023 11:45:49 -0700 Subject: [PATCH] Linting --- xdem/coreg/base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xdem/coreg/base.py b/xdem/coreg/base.py index f1816942..191c0e71 100644 --- a/xdem/coreg/base.py +++ b/xdem/coreg/base.py @@ -927,7 +927,7 @@ def fit_pts( z_name: str = "z", weights: str | None = None, random_state: None | np.random.RandomState | np.random.Generator | int = None, - ) -> CoregType: + ) -> CoregType: """ Estimate the coregistration transform between a DEM and a reference point elevation data. @@ -1041,8 +1041,9 @@ def fit_pts( if subsample != 1.0: # Randomly pick N inliers in the full_mask where N=subsample - random_valids = subsample_array(ref_dem[z_name].values, subsample=subsample, return_indices=True, - random_state=random_state) + random_valids = subsample_array( + ref_dem[z_name].values, subsample=subsample, return_indices=True, random_state=random_state + ) # Subset to the N random inliers ref_dem = ref_dem.iloc[random_valids]