Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Oct 14, 2023
1 parent 09127fa commit 01e3223
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xdem/coreg/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 01e3223

Please sign in to comment.