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

Add example of data filtering to Logging docs #14

Open
npetersen2 opened this issue Dec 27, 2021 · 0 comments
Open

Add example of data filtering to Logging docs #14

npetersen2 opened this issue Dec 27, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@npetersen2
Copy link
Contributor

This issue was moved from the AMDC-Firmware repo: Severson-Group/AMDC-Firmware#144


Per @Nick-Hemenway

You can VERY easily filter data in python pandas as follows:

First, create a filtering function:

# If the window length is 21, it will fit 10 data points to each side of the data point that is being smoothed
from scipy import signal
my_filter = lambda x: signal.savgol_filter(x, window_length = 21, polyorder = 2)

Then, to use the filter:
image

TODO

Since this is so easy and could be a very common thing to do when logging data, add a section to the Logging markdown docs with the above information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant