File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 55
66Interface for the postprocessing module.
77
8+ Support postprocessing types:
9+ - ensmeblestats
10+ - diagnostics
11+
812.. currentmodule:: pysteps.postprocessing.interface
913
1014.. autosummary::
@@ -101,10 +105,6 @@ def discover_postprocessors():
101105 f"{ plugintype } s" ,
102106 entry_point .attrs ,
103107 )
104- else :
105- raise ValueError (
106- f"Unknown module { entry_point .module_name } in the entrypoint { entry_point .name } "
107- )
108108
109109
110110def print_postprocessors_info (module_name , interface_methods , module_methods ):
Original file line number Diff line number Diff line change @@ -197,12 +197,16 @@ def method_getter(name):
197197 # Test for invalid argument type
198198 with pytest .raises (TypeError ):
199199 pysteps .postprocessing .interface .get_method ("mean" , None )
200+ with pytest .raises (TypeError ):
200201 pysteps .postprocessing .interface .get_method (None , "ensemblestats" )
201202
202203 # Test for invalid method types
203204 with pytest .raises (ValueError ):
204205 pysteps .postprocessing .interface .get_method ("mean" , "forecast" )
205206
207+ # Test print
208+ pysteps .postprocessing .postprocessors_info ()
209+
206210
207211def test_motion_interface ():
208212 """Test the motion module interface."""
You can’t perform that action at this time.
0 commit comments