MHKiT-MATLAB icon indicating copy to clipboard operation
MHKiT-MATLAB copied to clipboard

Environmental Contours Example Fails to Plot Environmental Contour

Open simmsa opened this issue 1 year ago • 0 comments

Description:

Attempting to run examples/environmental_contours_example.mlx results in the following error on line 35.

Unable to resolve the name 'py.mhkit.wave.resource.environmental_contour'.

Error in [environmental_contour](matlab:matlab.internal.language.introspective.errorDocCallback('environmental_contour', 'mhkit/wave/resource/environmental_contour.m', 91)) ([line 91](matlab: opentoline('mhkit/wave/resource/environmental_contour.m',91,0)))
data = py.mhkit.wave.resource.environmental_contour(py.numpy.array(x1),py.numpy.array(x2),...ttt

It appears that the call signature in MHKiT-Python for wave.contours.environmental_contours has changed significantly.

This code section handles the python call and contains the source of this bug.

simmsa avatar Feb 02 '24 17:02 simmsa