MHKiT-Software / MHKiT-MATLAB

MHKiT-MATLAB provides the marine renewable energy (MRE) community tools for data processing, visualization, quality control, resource assessment, and device performance.
https://mhkit-software.github.io/MHKiT/
BSD 3-Clause "New" or "Revised" License
15 stars 23 forks source link

Environmental Contours Example Fails to Plot Environmental Contour #123

Open simmsa opened 5 months ago

simmsa commented 5 months ago

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.