-
Notifications
You must be signed in to change notification settings - Fork 112
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
Deprecate filt
/filt!
with si
parameter
#603
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #603 +/- ##
==========================================
+ Coverage 97.91% 97.96% +0.05%
==========================================
Files 19 19
Lines 3262 3248 -14
==========================================
- Hits 3194 3182 -12
+ Misses 68 66 -2 ☔ View full report in Codecov by Sentry. |
15e306d
to
53eb85e
Compare
I noticed that the test against Matlab output (filt_check.txt) was dropped. I think that test could have been modified to use |
Mostly because I was hoping the But indeed, I was somewhat satisfied to see another of those tests against Matlab samples go. However, if |
53eb85e
to
97af271
Compare
Re-added that test. |
I do like this a lot more than returning the state. How well would this be received downstream? i.e. does anyone actually pass |
There are some really weird GC allocations from |
Added another (simpler?) test back. I think 2 tests using an initial state isn't too much. |
I don't know. I don't think it's particularly useful in its current form (hence #599 and this PR), so widespread use would surprise me. However, I don't want to rush this PR, so that more people get the chance to stumble upon it and raise any objections they might have. That said, I think I'll add deprecations so that code passing |
I have a niggling concern about |
Hm, that's a bit unfortunate indeed. We could also drop the
None of these options strikes me as ideal. But I'm fairly confident there is some way forward, so no reason to block this PR I'd hope. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup. Thought you wanted to add some deprecations and maybe even more documentation/tests, but I suppose that can go in another PR if needed.
Deprecations are in the works. Stay tuned. |
e2a9161
to
6101697
Compare
6101697
to
dbdbb7d
Compare
si
parameter from filt
/filt!
filt
/filt!
with si
parameter
LGTM. I guess for two AbstractVectors the repeat in the deprecated functions basically just copies, but it's good to be clear like this too. |
That should be covered by the more specific deprecations for that case, or am I misunderstanding? |
Yeah, I meant to say that e.g. lines 7-10 could be omitted. But it's good as is. |
The radical alternative to #599. If you need stateful filtering, use
DF2TFilter
. After #602, this shouldn't take away any functionality, just restrict the interface to enforce the use ofDF2TFilter
.