-
Notifications
You must be signed in to change notification settings - Fork 65
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 general filter use instead of just median filters #812
Conversation
6dc01dc
to
e6bdd99
Compare
Codecov Report
@@ Coverage Diff @@
## master #812 +/- ##
==========================================
+ Coverage 77.90% 77.99% +0.09%
==========================================
Files 24 24
Lines 5861 5876 +15
==========================================
+ Hits 4566 4583 +17
+ Misses 1295 1293 -2
Continue to review full report at Codecov.
|
Ready for review This PR basically just allows other filters to be used. I needed this for some reason I can't remember recently.... I think I wanted a percentile filter or something? |
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.
Added some clarifying suggestions for the input parameters, and I think we should add a matching max filter test for spatial smoothing.
I'm fairly sure we don't need to loop over the whole range of ndimage filters; I think they should all return a ND array.
Co-authored-by: Eric Koch <[email protected]> Update spectral_cube/dask_spectral_cube.py Co-authored-by: Eric Koch <[email protected]> Update spectral_cube/spectral_cube.py Co-authored-by: Eric Koch <[email protected]> Update spectral_cube/spectral_cube.py Co-authored-by: Eric Koch <[email protected]> Update spectral_cube/spectral_cube.py Co-authored-by: Eric Koch <[email protected]> Update spectral_cube/spectral_cube.py Co-authored-by: Eric Koch <[email protected]> Update spectral_cube/spectral_cube.py Co-authored-by: Eric Koch <[email protected]> Update spectral_cube/spectral_cube.py Co-authored-by: Eric Koch <[email protected]> Update spectral_cube/dask_spectral_cube.py Co-authored-by: Eric Koch <[email protected]> Update spectral_cube/dask_spectral_cube.py Co-authored-by: Eric Koch <[email protected]> Update spectral_cube/dask_spectral_cube.py Co-authored-by: Eric Koch <[email protected]>
75684ec
to
fdbfcd6
Compare
Co-authored-by: Eric Koch <[email protected]>
Co-authored-by: Eric Koch <[email protected]>
Is there a nicer way to inherit the docstrings?