Skip to content

Commit

Permalink
Add missing interfaces to utils.tapering methods (#264)
Browse files Browse the repository at this point in the history
* Add missing interfaces to utils.tapering methods

* Use micromamba 0.20
  • Loading branch information
dnerini committed Feb 14, 2022
1 parent e734c17 commit 2214610
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pysteps/tests/test_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def test_utils_interface():
from pysteps.utils import images
from pysteps.utils import interpolate
from pysteps.utils import spectral
from pysteps.utils import tapering
from pysteps.utils import transformation

method_getter = pysteps.utils.interface.get_method
Expand All @@ -274,6 +275,8 @@ def test_utils_interface():
("rbfinterp2d", interpolate.rbfinterp2d),
("rapsd", spectral.rapsd),
("rm_rdisc", spectral.remove_rain_norain_discontinuity),
("compute_mask_window_function", tapering.compute_mask_window_function),
("compute_window_function", tapering.compute_window_function),
("boxcox", transformation.boxcox_transform),
("box-cox", transformation.boxcox_transform),
("db", transformation.dB_transform),
Expand Down
6 changes: 6 additions & 0 deletions pysteps/utils/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ def donothing(R, metadata=None, *args, **kwargs):
methods_objects["rapsd"] = spectral.rapsd
methods_objects["rm_rdisc"] = spectral.remove_rain_norain_discontinuity

# tapering methods
methods_objects[
"compute_mask_window_function"
] = tapering.compute_mask_window_function
methods_objects["compute_window_function"] = tapering.compute_window_function

# transformation methods
methods_objects["boxcox"] = transformation.boxcox_transform
methods_objects["box-cox"] = transformation.boxcox_transform
Expand Down

0 comments on commit 2214610

Please sign in to comment.