-
Notifications
You must be signed in to change notification settings - Fork 53
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
Allow spectral filtering of input data #137
Allow spectral filtering of input data #137
Conversation
…istance along both dimensions
…eded if spectral filtering is desired
…timesteps is tested with and without spectral filtering option
Thanks @JuliaKukulies! I wonder if we should target a v1.4 release with these changes (and #138), given that the functionality is already in the v2.x branch and it seems to be well tested and less of a big change than #127 . I'm not sure. Either way, I'll try to get this reviewed next week. |
@freemansw1 Yes, I totally think we could that and have an intermediate release with this and #138. You are right that the changes are rather small and that it has already been reviewed for v.2 (just note that I have added a unit test that was not there before and that I made small changes in existing functions, so could be good to pay extra attention to that one more time). What about #136 then? It is quite a lot of new code and a comprehensive new feature, so maybe rather something for 1.5 together with #127, but on the other hand it is also easier to review given that it is just an addition of code rather than changes in existing code. So could also be ready for 1.4 already, if we go for a 1.4 release. |
@JuliaKukulies Agreed. Let's plan on a 1.4 release with these changes, mergers and splits, and documentation improvements. I've added new 1.3.2 and 1.4 milestones, and have (I hope) moved the appropriate PRs to the appropriate milestones. |
Perfect, thanks @freemansw1 ! |
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.
I just have a few comments, but I'm happy to approve/merge when we start staging for v1.4.
Codecov Report
@@ Coverage Diff @@
## RC_v1.4.0 #137 +/- ##
=============================================
+ Coverage 32.09% 32.75% +0.66%
=============================================
Files 11 11
Lines 2047 2085 +38
=============================================
+ Hits 657 683 +26
- Misses 1390 1402 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@freemansw1 I think I have addressed your two remaining points now. Sorry that this resulted in so many commits. I had some issues with the tests, as I had to change the unit at more locations than I thought. But now it should be fine. The main difference to the original PR are
|
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.
I'm happy with these changes now! We should wait to merge until we are staging for v1.4.0, but I am happy to merge otherwise.
Great, thanks for your review! Yes, we wait for v1.4.0 |
I've moved this to merge into the new |
All right, thanks @freemansw1! @w-k-jones do you think you wanna have a look as well or should I go ahead and merge? |
Note with the merge of #138, auto-merging now fails with the documentation being at issue. |
I went ahead and merged this now after solving the merge conflict with #138, since you approved @freemansw1. I hope that was OK! |
This pull request adds the spectral filtering feature (that has already been added to
v2.0-dev
though #65) todev
. The main changes I have made to the code arespectral_filtering()
inutils.py
feature_detection.py
to implement the filter step within the feature detection (same as for the optional gaussian filter)spectral_filtering()
function itself and the filtering option in the feature detection functionFor better comprehension what the function does, you can also check out the example notebook