-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spline_filter and spline_filter1d (#215)
* add spline_filter and spline_filter1d to ndinterp * call da.from_array on the input if it is not already a Dask array * support use of prefilter kwarg for affine_transform exclude use of boundary modes that require additional padding * test affine_transform with additional prefilter and mode combinations * avoid warnings about deprecated import from collections * fix copy/paste error in _dispatch_ndinterp.py * minor cleanup in test_affine_transformation.py * TST: add spline_filter tests * add order-dependent default depth The required depth is related to the magnitude of the spline prefilter poles * TST: test output argument of spline_filter functions * DOC: update coverage.rst * TST: fix test_affine_transform_prefilter_modes input_output_shape_per_dim requires sizes larger than the depth used by spline_filter * add scipy and dask version-dependent skip older dask didn't automatically rechunk during map_overlap fix veriable names: _supported_periodic_modes -> _supported_prefilter_modes _unsupported_periodic_modes -> _unsupported_prefilter_modes * add one more scipy version-dependent skip * TST: improve coverage by testing corner cases * enable mode='grid-wrap' for spline_filter * rename temporary variable to _depth to avoid shadowing function argument * fix typo in test_spline_filter_array_output_unsupported * fix: allow grid-warp in spline_filter1d as well * pep8 fixes * more informative mode-related error messages * update scipy.ndimage import style
- Loading branch information
Showing
6 changed files
with
575 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.