Description
test_environmental_contour, test_plot_environmental, and test_plot_environmental_contour_multiyear tests are failing. This issue initiates discussions on whether to refactor or deprecate these tests.
Context
- Failing Tests:
test_environmental_contour, test_plot_environmental, test_plot_environmental_contour_multiyear
- Status: Specified tests fail with error:
'MATLAB:Python:PyException'
--------------
Error Details:
--------------
Error using Wave_TestResourceMetrics/test_plot_environmental_contour
Python Error: TypeError: environmental_contours() missing 1 required positional argument: 'method'
Options:
- Modify/Update:
- Revise or update tests that call
environmental_contour.
- Deprecate:
- Remove tests that call
environmental_contour.
Additional Information
The specified tests call wave/resource/environmental_contour. The current version MHKiT-Python tests environmental contours here. In MHKIT-Python v0.6.0 this test was split from test_resource_metrics.py. To keep parity with MKHIT-Python, it may make sense to split these tests into a new file called Wave_TestContours and utilize a similar testing methodology as MHKiT-Python.
The root of this issue looks to be a the addition of the method argument to the environmental_contours function in MHKiT-Python, and changes to the structure of the returned dictionary.
The fix will require adding a new argument to environmental_contour and updating the code that converts the output of this function into a type that is useable in MATLAB.
Description
test_environmental_contour,test_plot_environmental, andtest_plot_environmental_contour_multiyeartests are failing. This issue initiates discussions on whether to refactor or deprecate these tests.Context
test_environmental_contour,test_plot_environmental,test_plot_environmental_contour_multiyearOptions:
environmental_contour.environmental_contour.Additional Information
The specified tests call
wave/resource/environmental_contour. The current version MHKiT-Python tests environmental contours here. In MHKIT-Python v0.6.0 this test was split fromtest_resource_metrics.py. To keep parity with MKHIT-Python, it may make sense to split these tests into a new file calledWave_TestContoursand utilize a similar testing methodology as MHKiT-Python.The root of this issue looks to be a the addition of the
methodargument to theenvironmental_contoursfunction in MHKiT-Python, and changes to the structure of the returned dictionary.The fix will require adding a new argument to
environmental_contourand updating the code that converts the output of this function into a type that is useable in MATLAB.