Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lowess: n_steps and use_coords #285

Merged
merged 5 commits into from
Sep 7, 2023

Conversation

mathause
Copy link
Member

@mathause mathause commented Sep 6, 2023

  • Closes #xxx
  • Tests added
  • Passes isort . && black . && flake8
  • Fully documented, including CHANGELOG.rst

This adds some changes to mesmer.stats.smoothing.lowess:

  • add n_steps keyword, which can be used instead of frac (as this is used in mesmer)
  • rename use_coords_as_x to use_coords
  • set use_coords=True to use coords as x-values per default. For datetime coords this will have to be set to False - this is a bit unfortunate (because we will mostly use it for that). However, it's the right thing to do - we want to be explicit about not using the coords (important when they are not equally spaced).

tests/unit/test_smoothing.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.15% 🎉

Comparison is base (2cc49a2) 86.39% compared to head (55d3e26) 86.54%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #285      +/-   ##
==========================================
+ Coverage   86.39%   86.54%   +0.15%     
==========================================
  Files          38       38              
  Lines        1543     1553      +10     
==========================================
+ Hits         1333     1344      +11     
+ Misses        210      209       -1     
Flag Coverage Δ
unittests 86.54% <100.00%> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
mesmer/stats/smoothing.py 100.00% <100.00%> (+4.76%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mathause mathause merged commit 308449f into MESMER-group:main Sep 7, 2023
6 checks passed
@mathause mathause deleted the lowess_n_steps_use_coords branch September 7, 2023 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant