MHKiT-MATLAB provides the marine renewable energy (MRE) community tools for data processing, visualization, quality control, resource assessment, and device performance.
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.
Description
test_environmental_contour
,test_plot_environmental
, andtest_plot_environmental_contour_multiyear
tests 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_multiyear
Options:
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_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 theenvironmental_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.