Skip to content
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

MHKiT v0.8.2 #347

Merged
merged 7 commits into from
Aug 13, 2024
Merged

MHKiT v0.8.2 #347

merged 7 commits into from
Aug 13, 2024

Conversation

ssolson
Copy link
Contributor

@ssolson ssolson commented Aug 12, 2024

MHKiT v0.8.2

MHKiT v0.8.2, includes bug fixes caused by the latest version of matplotlib. in the example notebooks and fixes the dependencies to requirements updates prior to Numpy 2.0.0.

Fixes MHKIT v0.8.1 runtime issues (#345) requiring matplotlib >3.8.0.

Adds ipython notebook tests and drops support for python < 3.10. Additionally improvements were made to the wind toolkit tests taking the testing time from > 4 hours to roughly 2 hours

Improved ADCP TKE example notebook discussion & removal of ADCP TKE function

Updated the surface_elevation calculation method to default to sum_of_sines when zero frequency is absent

Improved NOAA requests function issue #223

jmcvey3 and others added 7 commits July 3, 2024 09:58
* tke updates

* Fix shear velocity functions

* More detail for tke shear production

* Don't rotate heading beyond 360 degrees

* Fix some typos in notebook

* Rename deprecated function
* Test: Determine method using input frequency index

* Feat: Use sum of sines if ifft is not computable

This change allows `surface_elevation` to return a result if the user
inputs a spectrum with a frequency index that does not have a zero
frequency.

If the non zero frequency index condition is found when the method is
`ifft` we warn the user and change the method to `sum_of_sines`

* Fix: Use previously found frequency index

S.index may not exist for some input datasets, but f[0] does and we
should use the value of f[0] here.

* Test: Warn when using ifft with a non zero frequency

* Lint
This PR adds a Github action to test the example notebooks as part of or CD pipeline. Additionally a timeout is added to which notebooks will fail if they exceed the given time.
This PR addresses #315 by:
- Changes the data called by the Wind Toolkit tests so that they run faster
- Updates the .csv files that the tests compare against
- Updates a few descriptions in the metocean example, fixes a sorting issue, reduces the data downloaded there
- Tests in hindcast match the notebooks and use the same cache.
Bug fix by removing matplotlib version check needed for < 3.8.0
@ssolson ssolson requested a review from akeeste August 12, 2024 12:39
@ssolson ssolson self-assigned this Aug 12, 2024
@ssolson
Copy link
Contributor Author

ssolson commented Aug 13, 2024

@akeeste I think we are good to release this and fix issue #344.

Copy link
Contributor

@akeeste akeeste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ssolson for the quick fix on matplotlib and getting a new minor release set-up quickly

@ssolson ssolson merged commit 948c6b9 into master Aug 13, 2024
104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants