Closed simmsa closed 5 months ago
I'll be adding comments as I go through the review -
1) Please open an issue on the MHKiT-Matlab repo (if you have not already) for the depreciated tests so we can assign someone to address the incompatibility 2) for the code coverage report, you say it does not run automatically - how do you trigger it?
@rpauly18,
@simmsa feel free to merge this if you are 100% done with any additional changes.
@rpauly18 Thank you for the review and the merge!
Status
Summary of Changes
Detail of Changes
This PR
Actions/Workflow
test_WPTO_point_multiloc
andtest_WPTO_point_multiparm
.cache_population
job that runs a test with caching enable before themain
jobmhkit_webread_cache
main
job reads inmhkit_webread_cache
and uses the cacheTests
Fixed Tests
This PR fixes or adds the following tests:
Loads_TestExtreme
test_mler_coefficients
(b40f427)QC_Test
:test_check_corrupt
(83dbc31)test_check_delta
(83dbc31)test_check_increment
(83dbc31)test_check_missing
(83dbc31)test_check_timestamp
(83dbc31)River_TestDevice
test_circular
(42c9a58)River_TestResource
test_exceedance_probability
(cd0271d)Q
as a struct withDischarge
andtime
keysTidal_TestIO
:test_request_noaa_data
(e2613e4)Tidal_TestResource
:test_plot_phase_exceedance
(30ead68)Wave_TestResourceMetrics
:test_metrics_HsP
(40cd75e)test_metrics_AH
(40cd75e)test_metrics_CDIP1
(40cd75e)test_plot_elevation_timeseries
(1b973e4)test_energy_flux_deep
(40cd75e)Wave_TestResourceSpectrum
test_surface_elevation_seed
(a0cb0ef)test_surface_elevation_phasing
(e2f6080)test_surface_elevation_moments
(b0d93bb)Added Tests
Python_Import
import mhkit
performs nominallyimport pandas
performs nominallyimport h5py
performs nominallyPython_IO
Warnings
py.importlib.import_module('numpy');
[Warning: The name '<numpy function>' is already in use as a method name. This will become an error in a future release.]
Deprecated Tests
The following tests are not compatible with the latest versions of MHKiT-Python:
Note: Known failing tests use
assertFail
to force them to pass.Wave_TestResourceMetrics
:test_environmental_contour
test_plot_environmental_contour
test_plot_environmental_contour_multiyear
Code Coverage
Style
Documentation
ebbflood
Branch #101Features
Bug Fixes
Other
Caveats
Windows Unit Tests
Deactivation of selected Windows Unit Tests (MATLAB > 2022a) is necessary for the following reasons:
OutOfProcess
yields Unable to launch Simple server: Unable to launch C:\Program Files\MATLAB\R2023b\interprocess\bin\win64\pycli\MATLABPyHost.exepyenv(ExecutionMode='OutOfProcess')
allows access to Python libraries installed by the user and is required to use mhkit within MATLABInProcess
yields Unable to launch Simple server: Unable to launch C:\Program Files\MATLAB\R2023b\interprocess\bin\win64\pycli\MATLABPyHost.exeMacOS Unit Tests
Deactivation of selected MacOS Unit Tests for Python 3.11 and MATLAB latest is necessary for the following reasons: