Skip to content

Commit

Permalink
Rename partial_derivitives -> partial_derivatives
Browse files Browse the repository at this point in the history
  • Loading branch information
wkearn committed Dec 30, 2024
1 parent 90d97f4 commit 0df2198
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/topotoolbox/grid_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def erode(
return result

def evansslope(
self, partial_derivitives: bool = False, mode: str = 'nearest',
self, partial_derivatives: bool = False, mode: str = 'nearest',
modified: bool = False) -> 'GridObject' | Tuple['GridObject', 'GridObject']:
"""Evans method fits a second-order polynomial to 3x3 subgrids. The
parameters of the polynomial are the partial derivatives which are
Expand All @@ -650,7 +650,7 @@ def evansslope(
modified : bool, optional
If True, the surface is weakly smoothed before gradients are
calculated (see Shary et al., 2002), by default False
partial_derivitives : bool, optional
partial_derivatives : bool, optional
If True, both partial derivatives [fx, fy] will be returned as
GridObjects instead of just the evansslope, by default False
Expand All @@ -677,7 +677,7 @@ def evansslope(
[[1, 1, 1], [0, 0, 0], [-1, -1, -1]])/(6*self.cellsize)
fy = convolve(dem, ky, mode=mode)

if partial_derivitives:
if partial_derivatives:
result_kx = copy.copy(self)
result_ky = copy.copy(self)
result_kx.z = kx
Expand Down

0 comments on commit 0df2198

Please sign in to comment.