-
Notifications
You must be signed in to change notification settings - Fork 45
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
Tidal power performance #236
Conversation
@ssolson This should be ready for review Also, the tests are failing because of something I thought it an error in |
@ssolson I just remembered there are some changes in the dolfyn PR (namely to the function/shortcut |
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.
James I still need to review the example notebooks which I will get to later next week.
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.
I created a PR to address the change needed for this file.
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.
Merged
Tidal performance
@ssolson This one should also be good to merge in if you want to give it one more review |
Example notebook fix
Thanks @ssolson - made some last fixes to the notebooks |
**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
Tidal power performance capabilities specified in IEC/TS 6200-200.
TODOs left:
I would appreciate a second set of eyes and would be happy to discuss interpretation of the standards. The mathematical section is not well written, and I was relying on information conveyed in the text and plots in the appendix to figure out what was being asked. (My TS copy is heavily loaded with comments and corrections to keep track of things).
Also includes bugfixes, docstring clarifications, and useability edits for the Tidal module in general that I came across from a users standpoint. Changelog as follows:
Bugfixes:
- Standardized function inputs to accept both numpy.ndarrays and pandas.Series (some functions already have this implemented).
- Fixed assertions so that if a numpy array is supplied, the following assertions that rely on pandas don't fail (some functions already have this implemented).
- Added a (temporary) fix so that assertions can handle nans
- Fixed
river.performance
capture area calculation the multiplies by instead of dividing by 4.- Fixed a misnamed variable in
tidal.performance.principal_flow_directions
.- Corrected the "Returns" statement in the
tidal.performance.principal_flow_directions
docstring and added a "Notes" section.API/useability
- Added 'ax' argument passthrough to
tidal.graphics.plot_rose
andtidal.graphics.plot_joint_prob_distribution
to enable more complex matplotlib capabilities outside of the function.- Added check and updated docstring in
tidal.performance.principal_flow_directions
to make sure directions are between 0 and 360 degrees, which the function requires.