Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause authored Sep 5, 2023
1 parent 620f097 commit c019611
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mesmer/stats/smoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def lowess(data, dim, *, frac, use_coords_as_x=False, it=0):
frac : float
Between 0 and 1. The fraction of the data used when estimating each y-value.
use_coords_as_x : boolean, default: False
If True uses ``data[dim]`` as x-values else uses ``np.arange(data[dim.size])``
If True uses ``data[dim]`` as x-values else uses ``np.arange(data[dim].size)``
(useful if ``dim`` are time coordinates).
it : int, default: 0
The number of residual-based re-weightings to perform.
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_smoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_lowess_dataset():
xr.testing.assert_allclose(result, expected)


def test_lowess_dataset_extra_data_vars():
def test_lowess_dataset_missing_core_dims():

data = trend_data_1D()
da1 = xr.DataArray(1, name="extra1")
Expand Down

0 comments on commit c019611

Please sign in to comment.