-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Fix Unit Tests #108
Merged
Merged
RFC: Fix Unit Tests #108
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* wpto playground * format changes * upload temporary test script * wpto extract with REST API * fix directional wave spectrum bug * upload hindcast example * auto format time_index into datetime array * add tests for hindcast * remove temp file * bug fix for available buoy data vs hindcast * upload data * moving test files into hindcast folder * updating toolbox paths * updating hindcast example * Setup CI, v16.2, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.3, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.4, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.5, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.6, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.7, list installed toolboxes and addons * Setup CI, v17, uninstall all pre-installed toolboxes * Setup CI, v17.1, uninstall all pre-installed toolboxes * Setup CI, v17.2, toggle off all pre-installed toolboxes * Setup CI, v17.3, toggle off all pre-installed toolboxes * Setup CI, v17.4, toggle off all pre-installed toolboxes * Setup CI, v17.5, toggle off all pre-installed toolboxes * Setup CI, v17.6, toggle off all pre-installed toolboxes * Setup CI, v17.7, toggle off all pre-installed toolboxes * Setup CI, v17.8, toggle off all pre-installed toolboxes * Setup CI, v17.9, toggle off all pre-installed toolboxes * Setup CI, v17.10, list installed addons and toolboxes * Setup CI, v17.11, start uninstalling toolboxes * Setup CI, v17.12, start uninstalling toolboxes * Setup CI, v17.13, start uninstalling toolboxes * Setup CI, v17.14, start uninstalling toolboxes * Setup CI, v17.15, start uninstalling toolboxes * Setup CI, v17.16, start uninstalling toolboxes * Setup CI, v17.17, start uninstalling toolboxes * Setup CI, v17.18, start uninstalling toolboxes * Setup CI, v17.19, start uninstalling toolboxes * Setup CI, v17.20, start uninstalling toolboxes * Setup CI, v17.21, start uninstalling toolboxes * Setup CI, v17.22, start uninstalling toolboxes * Setup CI, v17.23, start uninstalling toolboxes * Setup CI, v17.24, start uninstalling toolboxes * Setup CI, v17.25, start uninstalling toolboxes * Setup CI, v17.26, start uninstalling toolboxes * Setup CI, v17.27, start uninstalling toolboxes * Setup CI, v17.28, start uninstalling toolboxes * Setup CI, v17.29, start uninstalling toolboxes * Setup CI, v17.30, start uninstalling toolboxes * Setup CI, v17.31, start uninstalling toolboxes * Setup CI, v17.32, start uninstalling toolboxes * Setup CI, v17.33, start uninstalling toolboxes * Setup CI, v17.34, start uninstalling toolboxes * Setup CI, v17.35, start uninstalling toolboxes * Setup CI, v18, simplify to most basic test * Setup CI, v19, install mhkit toolbox * Setup CI, v20, run a single test that uses mhkit * Setup CI, v21, run a single different test that uses mhkit * Setup CI, v21.1, run a single different test that uses mhkit * Setup CI, v21.2, run a single different test that uses mhkit * Add function to reload python in matlab after python code changes * Fix paths to python usgs and noaa functions * Update pierson_moskowitz_spectrum wrapper with additional Hs parameter * Update create_spectra with additional Hs parameter * Update tests fixing mostly broken relative file paths Co-authored-by: rpauly18 <[email protected]> Co-authored-by: Matthew Boyd <[email protected]>
…xceedance and plot_tidal_phase_probability
* Setup CI, v16.2, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.3, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.4, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.5, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.6, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.7, list installed toolboxes and addons * Setup CI, v17, uninstall all pre-installed toolboxes * Setup CI, v17.1, uninstall all pre-installed toolboxes * Setup CI, v17.2, toggle off all pre-installed toolboxes * Setup CI, v17.3, toggle off all pre-installed toolboxes * Setup CI, v17.4, toggle off all pre-installed toolboxes * Setup CI, v17.5, toggle off all pre-installed toolboxes * Setup CI, v17.6, toggle off all pre-installed toolboxes * Setup CI, v17.7, toggle off all pre-installed toolboxes * Setup CI, v17.8, toggle off all pre-installed toolboxes * Setup CI, v17.9, toggle off all pre-installed toolboxes * Setup CI, v17.10, list installed addons and toolboxes * Setup CI, v17.11, start uninstalling toolboxes * Setup CI, v17.12, start uninstalling toolboxes * Setup CI, v17.13, start uninstalling toolboxes * Setup CI, v17.14, start uninstalling toolboxes * Setup CI, v17.15, start uninstalling toolboxes * Setup CI, v17.16, start uninstalling toolboxes * Setup CI, v17.17, start uninstalling toolboxes * Setup CI, v17.18, start uninstalling toolboxes * Setup CI, v17.19, start uninstalling toolboxes * Setup CI, v17.20, start uninstalling toolboxes * Setup CI, v17.21, start uninstalling toolboxes * Setup CI, v17.22, start uninstalling toolboxes * Setup CI, v17.23, start uninstalling toolboxes * Setup CI, v17.24, start uninstalling toolboxes * Setup CI, v17.25, start uninstalling toolboxes * Setup CI, v17.26, start uninstalling toolboxes * Setup CI, v17.27, start uninstalling toolboxes * Setup CI, v17.28, start uninstalling toolboxes * Setup CI, v17.29, start uninstalling toolboxes * Setup CI, v17.30, start uninstalling toolboxes * Setup CI, v17.31, start uninstalling toolboxes * Setup CI, v17.32, start uninstalling toolboxes * Setup CI, v17.33, start uninstalling toolboxes * Setup CI, v17.34, start uninstalling toolboxes * Setup CI, v17.35, start uninstalling toolboxes * Setup CI, v18, simplify to most basic test * Setup CI, v19, install mhkit toolbox * Setup CI, v20, run a single test that uses mhkit * Setup CI, v21, run a single different test that uses mhkit * Setup CI, v21.1, run a single different test that uses mhkit * Setup CI, v21.2, run a single different test that uses mhkit * Add function to reload python in matlab after python code changes * Fix paths to python usgs and noaa functions * Update pierson_moskowitz_spectrum wrapper with additional Hs parameter * Update create_spectra with additional Hs parameter * Update tests fixing mostly broken relative file paths * Adressing issue #65 tidal ebb and flood plots for Matlab * adding the project file * updating the function descriptions * Merge QC_Test into master (#63) * Add QC_Test.m draft * check incriment working * Update qctest file * test_check_timestep passes * test_check_delta passes * cleanup Co-authored-by: kbrode22 <[email protected]> Co-authored-by: rpauly18 <[email protected]> Co-authored-by: Bhaskar <[email protected]> * Adding tests to account for the new plot functions plot_tidal_phase_exceedance and plot_tidal_phase_probability * Bug fix io request data (#78) * Rewrite usgs data request with no python calls to fix ssl error * Rewrite noaa data request with no python calls to fix ssl error, WIP * Split noaa data calls into max day periods * Rewrite ndbc available data request with no python calls to fix ssl error * Rewrite ndbc data request with no python calls to fix ssl error, WIP * Rewrite ndbc data request with no python calls to fix ssl error, include stdmet option * Handle errors from noaa data query * Update example with noaa data query after change to options argument * Check parameter input types to request_usgs_data.m * minor edits * Add proxy instructions and remove associated deprecated code * Handle more NDBC file formats and corruptions * Filter the NDBC available data by buoy * Resolve mostly relative file path issues in associated live scripts * Add automatic retries to usgs, noaa and ndbc data queries Co-authored-by: rpauly18 <[email protected]> * Move CI Unit Tests to GitHub Actions (#80) * Speed up reading of dataframe datetimes * Add datetime_index_to_ordinal function to pandas_dataframe module to convert the datetime index of dataframes to MATLAB ordinal values * Convert all methods using cell arrays to get the datetimes index to use datetime_index_to_ordinal function * Fix test assert to check for POSIX time rather than string * Skip tests of environmental_contour function which is broken * Run CI tests with all installed from source and OutOfProcess execution mode * Rename run_tests to tests and delete main * Give the workflow a more badge friendly name and add to README * Minor changes * Delete TravisCI build * Remove unused import * Remove duplicated code Co-authored-by: Matthew Boyd <[email protected]> Co-authored-by: McVey <[email protected]> Co-authored-by: rpauly18 <[email protected]> Co-authored-by: Parangat Bhaskar <[email protected]> Co-authored-by: kbrode22 <[email protected]> Co-authored-by: Bhaskar <[email protected]> Co-authored-by: Matthew Boyd <[email protected]> Co-authored-by: Mathew Topper <[email protected]>
* Addressing issue #59 magnitude and phase function for Matlab * Adding tests for magnitude_phase function Co-authored-by: McVey <[email protected]> Co-authored-by: rpauly18 <[email protected]>
* Setup CI, v16.2, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.3, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.4, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.5, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.6, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.7, list installed toolboxes and addons * Setup CI, v17, uninstall all pre-installed toolboxes * Setup CI, v17.1, uninstall all pre-installed toolboxes * Setup CI, v17.2, toggle off all pre-installed toolboxes * Setup CI, v17.3, toggle off all pre-installed toolboxes * Setup CI, v17.4, toggle off all pre-installed toolboxes * Setup CI, v17.5, toggle off all pre-installed toolboxes * Setup CI, v17.6, toggle off all pre-installed toolboxes * Setup CI, v17.7, toggle off all pre-installed toolboxes * Setup CI, v17.8, toggle off all pre-installed toolboxes * Setup CI, v17.9, toggle off all pre-installed toolboxes * Setup CI, v17.10, list installed addons and toolboxes * Setup CI, v17.11, start uninstalling toolboxes * Setup CI, v17.12, start uninstalling toolboxes * Setup CI, v17.13, start uninstalling toolboxes * Setup CI, v17.14, start uninstalling toolboxes * Setup CI, v17.15, start uninstalling toolboxes * Setup CI, v17.16, start uninstalling toolboxes * Setup CI, v17.17, start uninstalling toolboxes * Setup CI, v17.18, start uninstalling toolboxes * Setup CI, v17.19, start uninstalling toolboxes * Setup CI, v17.20, start uninstalling toolboxes * Setup CI, v17.21, start uninstalling toolboxes * Setup CI, v17.22, start uninstalling toolboxes * Setup CI, v17.23, start uninstalling toolboxes * Setup CI, v17.24, start uninstalling toolboxes * Setup CI, v17.25, start uninstalling toolboxes * Setup CI, v17.26, start uninstalling toolboxes * Setup CI, v17.27, start uninstalling toolboxes * Setup CI, v17.28, start uninstalling toolboxes * Setup CI, v17.29, start uninstalling toolboxes * Setup CI, v17.30, start uninstalling toolboxes * Setup CI, v17.31, start uninstalling toolboxes * Setup CI, v17.32, start uninstalling toolboxes * Setup CI, v17.33, start uninstalling toolboxes * Setup CI, v17.34, start uninstalling toolboxes * Setup CI, v17.35, start uninstalling toolboxes * updates to spectrum and elevation functions * updating io paths * Setup CI, v18, simplify to most basic test * Setup CI, v19, install mhkit toolbox * Setup CI, v20, run a single test that uses mhkit * Setup CI, v21, run a single different test that uses mhkit * Setup CI, v21.1, run a single different test that uses mhkit * Setup CI, v21.2, run a single different test that uses mhkit * Add function to reload python in matlab after python code changes * Fix paths to python usgs and noaa functions * Update pierson_moskowitz_spectrum wrapper with additional Hs parameter * Update create_spectra with additional Hs parameter * Update tests fixing mostly broken relative file paths * Merge QC_Test into master (#63) * Add QC_Test.m draft * check incriment working * Update qctest file * test_check_timestep passes * test_check_delta passes * cleanup Co-authored-by: kbrode22 <[email protected]> Co-authored-by: rpauly18 <[email protected]> Co-authored-by: Bhaskar <[email protected]> * Bug fix io request data (#78) * Rewrite usgs data request with no python calls to fix ssl error * Rewrite noaa data request with no python calls to fix ssl error, WIP * Split noaa data calls into max day periods * Rewrite ndbc available data request with no python calls to fix ssl error * Rewrite ndbc data request with no python calls to fix ssl error, WIP * Rewrite ndbc data request with no python calls to fix ssl error, include stdmet option * Handle errors from noaa data query * Update example with noaa data query after change to options argument * Check parameter input types to request_usgs_data.m * minor edits * Add proxy instructions and remove associated deprecated code * Handle more NDBC file formats and corruptions * Filter the NDBC available data by buoy * Resolve mostly relative file path issues in associated live scripts * Add automatic retries to usgs, noaa and ndbc data queries Co-authored-by: rpauly18 <[email protected]> * Move CI Unit Tests to GitHub Actions (#80) * Speed up reading of dataframe datetimes * Add datetime_index_to_ordinal function to pandas_dataframe module to convert the datetime index of dataframes to MATLAB ordinal values * Convert all methods using cell arrays to get the datetimes index to use datetime_index_to_ordinal function * Fix test assert to check for POSIX time rather than string * Skip tests of environmental_contour function which is broken * Run CI tests with all installed from source and OutOfProcess execution mode * Rename run_tests to tests and delete main * Give the workflow a more badge friendly name and add to README * Minor changes * Delete TravisCI build * Remove unused import * Remove duplicated code * resolving test issues * Add Windows MATLAB-Actions Runners (#81) * Put all test output in a single folder and hide from git * Test windows runner using InProcess mode Also removed pinning of matplotlib. See #80 (comment) * Add develop branch to on-push and on-pull_request Co-authored-by: Matthew Boyd <[email protected]> * fixing tests * removing trouble test temporairly * restarting tests * updating python calls Co-authored-by: Matthew Boyd <[email protected]> Co-authored-by: Parangat Bhaskar <[email protected]> Co-authored-by: kbrode22 <[email protected]> Co-authored-by: Bhaskar <[email protected]> Co-authored-by: Matthew Boyd <[email protected]> Co-authored-by: Mathew Topper <[email protected]> Co-authored-by: Mathew Topper <[email protected]>
* adding deep flag and wave_length * adding depth_regime * updates * first few tests working * adding final tests * updating toolbox * Setup CI, v16.2, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.3, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.4, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.5, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.6, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.7, list installed toolboxes and addons * Setup CI, v17, uninstall all pre-installed toolboxes * Setup CI, v17.1, uninstall all pre-installed toolboxes * Setup CI, v17.2, toggle off all pre-installed toolboxes * Setup CI, v17.3, toggle off all pre-installed toolboxes * Setup CI, v17.4, toggle off all pre-installed toolboxes * Setup CI, v17.5, toggle off all pre-installed toolboxes * Setup CI, v17.6, toggle off all pre-installed toolboxes * Setup CI, v17.7, toggle off all pre-installed toolboxes * Setup CI, v17.8, toggle off all pre-installed toolboxes * Setup CI, v17.9, toggle off all pre-installed toolboxes * Setup CI, v17.10, list installed addons and toolboxes * Setup CI, v17.11, start uninstalling toolboxes * Setup CI, v17.12, start uninstalling toolboxes * Setup CI, v17.13, start uninstalling toolboxes * Setup CI, v17.14, start uninstalling toolboxes * Setup CI, v17.15, start uninstalling toolboxes * Setup CI, v17.16, start uninstalling toolboxes * Setup CI, v17.17, start uninstalling toolboxes * Setup CI, v17.18, start uninstalling toolboxes * Setup CI, v17.19, start uninstalling toolboxes * Setup CI, v17.20, start uninstalling toolboxes * Setup CI, v17.21, start uninstalling toolboxes * Setup CI, v17.22, start uninstalling toolboxes * Setup CI, v17.23, start uninstalling toolboxes * Setup CI, v17.24, start uninstalling toolboxes * Setup CI, v17.25, start uninstalling toolboxes * Setup CI, v17.26, start uninstalling toolboxes * Setup CI, v17.27, start uninstalling toolboxes * Setup CI, v17.28, start uninstalling toolboxes * Setup CI, v17.29, start uninstalling toolboxes * Setup CI, v17.30, start uninstalling toolboxes * Setup CI, v17.31, start uninstalling toolboxes * Setup CI, v17.32, start uninstalling toolboxes * Setup CI, v17.33, start uninstalling toolboxes * Setup CI, v17.34, start uninstalling toolboxes * Setup CI, v17.35, start uninstalling toolboxes * Setup CI, v18, simplify to most basic test * Setup CI, v19, install mhkit toolbox * Setup CI, v20, run a single test that uses mhkit * Setup CI, v21, run a single different test that uses mhkit * Setup CI, v21.1, run a single different test that uses mhkit * Setup CI, v21.2, run a single different test that uses mhkit * Add function to reload python in matlab after python code changes * Fix paths to python usgs and noaa functions * Update pierson_moskowitz_spectrum wrapper with additional Hs parameter * Update create_spectra with additional Hs parameter * Update tests fixing mostly broken relative file paths * Merge QC_Test into master (#63) * Add QC_Test.m draft * check incriment working * Update qctest file * test_check_timestep passes * test_check_delta passes * cleanup Co-authored-by: kbrode22 <[email protected]> Co-authored-by: rpauly18 <[email protected]> Co-authored-by: Bhaskar <[email protected]> * Bug fix io request data (#78) * Rewrite usgs data request with no python calls to fix ssl error * Rewrite noaa data request with no python calls to fix ssl error, WIP * Split noaa data calls into max day periods * Rewrite ndbc available data request with no python calls to fix ssl error * Rewrite ndbc data request with no python calls to fix ssl error, WIP * Rewrite ndbc data request with no python calls to fix ssl error, include stdmet option * Handle errors from noaa data query * Update example with noaa data query after change to options argument * Check parameter input types to request_usgs_data.m * minor edits * Add proxy instructions and remove associated deprecated code * Handle more NDBC file formats and corruptions * Filter the NDBC available data by buoy * Resolve mostly relative file path issues in associated live scripts * Add automatic retries to usgs, noaa and ndbc data queries Co-authored-by: rpauly18 <[email protected]> * Move CI Unit Tests to GitHub Actions (#80) * Speed up reading of dataframe datetimes * Add datetime_index_to_ordinal function to pandas_dataframe module to convert the datetime index of dataframes to MATLAB ordinal values * Convert all methods using cell arrays to get the datetimes index to use datetime_index_to_ordinal function * Fix test assert to check for POSIX time rather than string * Skip tests of environmental_contour function which is broken * Run CI tests with all installed from source and OutOfProcess execution mode * Rename run_tests to tests and delete main * Give the workflow a more badge friendly name and add to README * Minor changes * Delete TravisCI build * Remove unused import * Remove duplicated code * Add Windows MATLAB-Actions Runners (#81) * Put all test output in a single folder and hide from git * Test windows runner using InProcess mode Also removed pinning of matplotlib. See #80 (comment) * Add develop branch to on-push and on-pull_request Co-authored-by: Matthew Boyd <[email protected]> * updating test Co-authored-by: Matthew Boyd <[email protected]> Co-authored-by: Parangat Bhaskar <[email protected]> Co-authored-by: kbrode22 <[email protected]> Co-authored-by: Bhaskar <[email protected]> Co-authored-by: Matthew Boyd <[email protected]> Co-authored-by: Mathew Topper <[email protected]> Co-authored-by: Mathew Topper <[email protected]>
* Setup CI, v16.2, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.3, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.4, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.5, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.6, try to fix HDF5 issue, try fix outlined in Troubleshooting * Setup CI, v16.7, list installed toolboxes and addons * Setup CI, v17, uninstall all pre-installed toolboxes * Setup CI, v17.1, uninstall all pre-installed toolboxes * Setup CI, v17.2, toggle off all pre-installed toolboxes * Setup CI, v17.3, toggle off all pre-installed toolboxes * Setup CI, v17.4, toggle off all pre-installed toolboxes * Setup CI, v17.5, toggle off all pre-installed toolboxes * Setup CI, v17.6, toggle off all pre-installed toolboxes * Setup CI, v17.7, toggle off all pre-installed toolboxes * Setup CI, v17.8, toggle off all pre-installed toolboxes * Setup CI, v17.9, toggle off all pre-installed toolboxes * Setup CI, v17.10, list installed addons and toolboxes * Setup CI, v17.11, start uninstalling toolboxes * Setup CI, v17.12, start uninstalling toolboxes * Setup CI, v17.13, start uninstalling toolboxes * Setup CI, v17.14, start uninstalling toolboxes * Setup CI, v17.15, start uninstalling toolboxes * Setup CI, v17.16, start uninstalling toolboxes * Setup CI, v17.17, start uninstalling toolboxes * Setup CI, v17.18, start uninstalling toolboxes * Setup CI, v17.19, start uninstalling toolboxes * Setup CI, v17.20, start uninstalling toolboxes * Setup CI, v17.21, start uninstalling toolboxes * Setup CI, v17.22, start uninstalling toolboxes * Setup CI, v17.23, start uninstalling toolboxes * Setup CI, v17.24, start uninstalling toolboxes * Setup CI, v17.25, start uninstalling toolboxes * Setup CI, v17.26, start uninstalling toolboxes * Setup CI, v17.27, start uninstalling toolboxes * Setup CI, v17.28, start uninstalling toolboxes * Setup CI, v17.29, start uninstalling toolboxes * Setup CI, v17.30, start uninstalling toolboxes * Setup CI, v17.31, start uninstalling toolboxes * Setup CI, v17.32, start uninstalling toolboxes * Setup CI, v17.33, start uninstalling toolboxes * Setup CI, v17.34, start uninstalling toolboxes * Setup CI, v17.35, start uninstalling toolboxes * Setup CI, v18, simplify to most basic test * Setup CI, v19, install mhkit toolbox * Setup CI, v20, run a single test that uses mhkit * Setup CI, v21, run a single different test that uses mhkit * Setup CI, v21.1, run a single different test that uses mhkit * Setup CI, v21.2, run a single different test that uses mhkit * Add function to reload python in matlab after python code changes * Fix paths to python usgs and noaa functions * Update pierson_moskowitz_spectrum wrapper with additional Hs parameter * Update create_spectra with additional Hs parameter * Update tests fixing mostly broken relative file paths * Merge QC_Test into master (#63) * Add QC_Test.m draft * check incriment working * Update qctest file * test_check_timestep passes * test_check_delta passes * cleanup Co-authored-by: kbrode22 <[email protected]> Co-authored-by: rpauly18 <[email protected]> Co-authored-by: Bhaskar <[email protected]> * Bug fix io request data (#78) * Rewrite usgs data request with no python calls to fix ssl error * Rewrite noaa data request with no python calls to fix ssl error, WIP * Split noaa data calls into max day periods * Rewrite ndbc available data request with no python calls to fix ssl error * Rewrite ndbc data request with no python calls to fix ssl error, WIP * Rewrite ndbc data request with no python calls to fix ssl error, include stdmet option * Handle errors from noaa data query * Update example with noaa data query after change to options argument * Check parameter input types to request_usgs_data.m * minor edits * Add proxy instructions and remove associated deprecated code * Handle more NDBC file formats and corruptions * Filter the NDBC available data by buoy * Resolve mostly relative file path issues in associated live scripts * Add automatic retries to usgs, noaa and ndbc data queries Co-authored-by: rpauly18 <[email protected]> * Move CI Unit Tests to GitHub Actions (#80) * Speed up reading of dataframe datetimes * Add datetime_index_to_ordinal function to pandas_dataframe module to convert the datetime index of dataframes to MATLAB ordinal values * Convert all methods using cell arrays to get the datetimes index to use datetime_index_to_ordinal function * Fix test assert to check for POSIX time rather than string * Skip tests of environmental_contour function which is broken * Run CI tests with all installed from source and OutOfProcess execution mode * Rename run_tests to tests and delete main * Give the workflow a more badge friendly name and add to README * Minor changes * Delete TravisCI build * Remove unused import * Remove duplicated code * Initial commit, WIP * More progress, WIP * Make first complete working version of cdip data collector * Refactor datum_categories function * Rename categories to groups * Alphabetize local functions * Fix a couple issues * Finish adding data tests, minus plot tests * Add autoretry * Refactor autoretry * Add compendium plot and associated tests * Add box plot function, not needing statistical toolbox * Customize boxplot function to look more like Python plot * Refactor compendium plot * Add boxplot and associated test * Handle when no times are given * Make plots not open in new window when in live script * Add example live script for CDIP * Make boxplot look more like Python plot * Make compendium plot look more like Python plot * Change plot time parameters from POSIX to datetime * Remove optional nc object parameter * Fix docstring * updating matlab toolbox * Warn on non-existant parameters * Fix spelling errors * Replace a try-catch block * Add low-level netcdf cdip functions for older matlab versions * Reduce query size of USGS instantaneous data test to avoid query limit * Remove USGS instantaneous data test to stop failed CI runs * Remove Python 3.7 CI jobs as it is no longer supported by hosted runners * Remove boxplot legend dependency on data file Co-authored-by: Parangat Bhaskar <[email protected]> Co-authored-by: kbrode22 <[email protected]> Co-authored-by: rpauly18 <[email protected]> Co-authored-by: Bhaskar <[email protected]> Co-authored-by: Mathew Topper <[email protected]>
Previous wording had grammatical errors. This keeps consistency between projects
I'll be adding comments as I go through the review -
|
|
rpauly18
approved these changes
Dec 27, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thanks for your hard work on this!
@simmsa feel free to merge this if you are 100% done with any additional changes. |
@rpauly18 Thank you for the review and the merge! |
This was referenced Jan 31, 2024
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: