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

Allow general filter use instead of just median filters #812

Merged
merged 11 commits into from
Sep 23, 2022

Conversation

keflavich
Copy link
Contributor

Is there a nicer way to inherit the docstrings?

@keflavich keflavich force-pushed the general_filters branch 2 times, most recently from 6dc01dc to e6bdd99 Compare May 20, 2022 18:22
@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2022

Codecov Report

Merging #812 (634c2a3) into master (40401bd) will increase coverage by 0.09%.
The diff coverage is 94.73%.

❗ Current head 634c2a3 differs from pull request most recent head 75684ec. Consider uploading reports for the commit 75684ec to get more accurate results

@@            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     
Impacted Files Coverage Δ
spectral_cube/base_class.py 86.11% <ø> (ø)
spectral_cube/spectral_cube.py 76.64% <90.00%> (+0.05%) ⬆️
spectral_cube/dask_spectral_cube.py 85.14% <100.00%> (+0.12%) ⬆️
spectral_cube/cube_utils.py 82.59% <0.00%> (+1.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40401bd...75684ec. Read the comment docs.

@keflavich keflavich requested a review from e-koch June 13, 2022 00:28
@keflavich
Copy link
Contributor Author

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?

Copy link
Contributor

@e-koch e-koch left a 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.

spectral_cube/dask_spectral_cube.py Outdated Show resolved Hide resolved
spectral_cube/dask_spectral_cube.py Outdated Show resolved Hide resolved
spectral_cube/spectral_cube.py Outdated Show resolved Hide resolved
spectral_cube/spectral_cube.py Outdated Show resolved Hide resolved
spectral_cube/spectral_cube.py Outdated Show resolved Hide resolved
spectral_cube/spectral_cube.py Outdated Show resolved Hide resolved
spectral_cube/dask_spectral_cube.py Outdated Show resolved Hide resolved
spectral_cube/dask_spectral_cube.py Outdated Show resolved Hide resolved
spectral_cube/dask_spectral_cube.py Outdated Show resolved Hide resolved
spectral_cube/tests/test_spectral_cube.py Show resolved Hide resolved
keflavich and others added 7 commits July 21, 2022 20:26
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]>
@e-koch e-koch merged commit de76f8a into radio-astro-tools:master Sep 23, 2022
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.

3 participants