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

Fix type for return_year in extreme.return_year_value #225

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

mbruggs
Copy link
Contributor

@mbruggs mbruggs commented Feb 22, 2023

In an oversight in merging #193 the docstring was updated for the type of return_year in return_year_value but the corresponding assertion was not.

Tests for the types of the two input parameters have been added to try to avoid a simular situation occuring the future.

@mbruggs
Copy link
Contributor Author

mbruggs commented Feb 22, 2023

Sorry about this, my mistake in the initial PR. I found it when trying to integrate v0.6.0 into a project. Is there a 'hot-fix' procedure that would mean a v0.6.1 would be possible with just this change (or any others that fix bugs)?

@mbruggs
Copy link
Contributor Author

mbruggs commented Feb 22, 2023

Looks like there are quite a few test failures but they don't appear to be related to this code change.

@ssolson
Copy link
Contributor

ssolson commented Feb 22, 2023

No worries @mbruggs we can tag a new release with this change. Thank you for posting this new PR.

I am looking into the other failures. At first glance, It looks like matplotlib updated.

@mbruggs
Copy link
Contributor Author

mbruggs commented Feb 22, 2023

Thanks @ssolson!

@ssolson
Copy link
Contributor

ssolson commented Feb 22, 2023

#226 should fix the issues with the matplotlib update

@ssolson ssolson changed the base branch from Develop to develop February 22, 2023 18:10
@ssolson
Copy link
Contributor

ssolson commented Feb 22, 2023

@mbruggs it is showing that you are trying to change 190 files currently.

Can you resubmit this PR using the latest version of develop as your HEAD so that we are sure we are only changing what we intend to?

@ssolson
Copy link
Contributor

ssolson commented Feb 22, 2023

Okay @mbruggs I fixed the issues causing the tests to fail by merging #226 . If you pull the latest develop branch everything should pass.

In an oversight in merging MHKiT-Software#193 the docstring was updated for the
type of return_year in return_year_value but the corresponding
assertion was not.

Tests for the types of the two input parameters have been added to
try to avoid a simular situation occuring the future.
@mbruggs mbruggs force-pushed the fix/return-year-type branch from efd5de4 to 8f4e0b9 Compare February 23, 2023 09:45
@mbruggs
Copy link
Contributor Author

mbruggs commented Feb 23, 2023

Thanks for fixing the matplotlib issue so quickly, @ssolson. It seems to have fixed the tests except the hindcast ones which seem to be hanging (I couldn't find a way to stop them).

Branch has been rebased so now only showing the files that have actually been changed.

Copy link
Contributor

@ssolson ssolson left a comment

Choose a reason for hiding this comment

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

This looks great. Thank you for this PR!

@ssolson ssolson merged commit 96addca into MHKiT-Software:develop Feb 23, 2023
@mbruggs mbruggs deleted the fix/return-year-type branch February 23, 2023 15:05
jmcvey3 pushed a commit to jmcvey3/MHKiT-Python that referenced this pull request Apr 14, 2023
…#225)

In an oversight in merging MHKiT-Software#193 the docstring was updated for the
type of return_year in return_year_value but the corresponding
assertion was not.

Tests for the types of the two input parameters have been added to
try to avoid a simular situation occuring the future.
@ssolson ssolson mentioned this pull request Aug 11, 2023
ssolson added a commit that referenced this pull request Aug 11, 2023
**MHKiT 0.7.0 Release Notes**

This release introduces exciting new features and improvements to the MHKiT package:

- **Mooring Module**: We are pleased to introduce the new mooring module. This addition primarily supports outputs from MoorDyn. Within this module, users can:
  - Import data
  - Calculate lay length
  - Visualize mooring line movements in 2D and 3D with graphical animations.
  
  Accompanying this module is an example notebook to guide users on its functionalities.

- **Dolfyn Module Revamp**: The Dolfyn module has been overhauled. Enhancements include:
  - Turbulence calculation capability
  - Performance measures for tidal power as outlined in IEC/TS 6200-200.

- **New Contributions**: A big shoutout to our community member, @mbruggs, for adding the ability to compute surface elevation using IFFT.

- **NDBC Buoy Metadata**: Users can now fetch NDBC buoy metadata directly through MHKiT.

- **Delft3D Module Update**: Stay up to date with support for the latest Delft3D NetCDF format.

**Additions**
- #235
- #232 
- #236 
- #250
- #239
- #248

**Bug Fixes**
- #226 
- #238

**Meta/Minor Changes**
- #220
- #243
- #225 
- #231
- #224

Thank you to all of the contributers who helpped with this release:
@mbruggs @Graham-EGI @castillocesar @jmcvey3 @hivanov-nrel  @browniea @cmichelenstrofer @akeeste  @maxwelllevin @rpauly18 @ssolson
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.

2 participants