Skip to content

Commit d2a2b66

Browse files
authored
MHKiT 0.7.0 (#256)
**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
1 parent e591600 commit d2a2b66

File tree

173 files changed

+408681
-294240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+408681
-294240
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches:
66
- master
7-
- Develop
7+
- develop
88
pull_request:
99
branches:
1010
- master
11-
- Develop
11+
- develop
1212

1313
jobs:
1414
conda-build:

.github/workflows/pypi.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Builds mhkit and publishes to testpypi.org on every commit to master. On tagged commits, also publishes to pypi.org.
2+
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
3+
4+
name: Build and release 🐍 📦
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
release:
11+
types: [published]
12+
13+
jobs:
14+
build-and-publish:
15+
name: Build and release 🐍 📦
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
23+
- uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.8
26+
27+
- run: python -m pip install build --user
28+
- run: python -m build --sdist --wheel --outdir dist/ .
29+
30+
- name: Upload to Test PyPI
31+
if: github.repository_owner == 'MHKiT-Software'
32+
uses: pypa/gh-action-pypi-publish@release/v1
33+
with:
34+
user: __token__
35+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
36+
repository_url: https://test.pypi.org/legacy/
37+
38+
- name: Upload to PyPI (tagged release only)
39+
if:
40+
github.repository_owner == 'MHKiT-Software' && github.event_name == 'release' &&
41+
github.event.action == 'published'
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
user: __token__
45+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ $ cat .gitignore
99
*.swp
1010
*.tws
1111
*~
12+
*.png
1213

1314
# Directories
1415
**/__pycache__/
@@ -32,3 +33,6 @@ $ cat .gitignore
3233
# Exemptions
3334
!**/examples/data/wave/*.mat
3435
!**/tests/data/wave/*.mat
36+
37+
# Files created during tests
38+
mhkit/tests/wave/plots/

README.md

Lines changed: 58 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
![](figures/logo.png) MHKiT-Python
22
=====================================
33

4-
[![Py 3.8,3.9 | Windows Mac Linux](https://github.com/MHKiT-Software/MHKiT-Python/actions/workflows/main.yml/badge.svg)](https://github.com/MHKiT-Software/MHKiT-Python/actions/workflows/main.yml)
5-
[![Coverage Status](https://coveralls.io/repos/github/MHKiT-Software/MHKiT-Python/badge.svg?branch=master)](https://coveralls.io/github/MHKiT-Software/MHKiT-Python?branch=master)
6-
[![Downloads](https://pepy.tech/badge/mhkit)](https://pepy.tech/project/mhkit)
7-
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3924683.svg)](https://doi.org/10.5281/zenodo.3924683)
8-
4+
<p align="left">
5+
<a href=https://github.com/MHKiT-Software/MHKiT-Python/actions/workflows/main.yml>
6+
<img src="https://github.com/MHKiT-Software/MHKiT-Python/actions/workflows/main.yml/badge.svg">
7+
</a>
8+
<a href=https://coveralls.io/github/MHKiT-Software/MHKiT-Python?branch=master>
9+
<img src="https://coveralls.io/repos/github/MHKiT-Software/MHKiT-Python/badge.svg?branch=master">
10+
</a>
11+
<a href=https://pepy.tech/project/mhkit>
12+
<img src="https://pepy.tech/badge/mhkit">
13+
</a>
14+
<a href=https://doi.org/10.5281/zenodo.3924683>
15+
<img src="https://zenodo.org/badge/DOI/10.5281/zenodo.3924683.svg">
16+
</a>
17+
</p>
918

1019
MHKiT-Python is a Python package designed for marine renewable energy applications to assist in
1120
data processing and visualization. The software package include functionality for:
@@ -34,3 +43,47 @@ MHKiT-Python is copyright through the National Renewable Energy Laboratory,
3443
Pacific Northwest National Laboratory, and Sandia National Laboratories.
3544
The software is distributed under the Revised BSD License.
3645
See [copyright and license](LICENSE.md) for more information.
46+
47+
Issues
48+
------------------------
49+
The GitHub platform has the Issues feature that is used to track ideas, feedback, tasks, and/or bugs. To submit an Issue, follow the steps below. More information about GitHub Issues can be found [here](https://docs.github.com/en/issues/tracking-your-work-with-issues/about-issues)
50+
1. Navigate to the [MHKiT-Python main page](https://github.com/MHKiT-Software/MHKiT-Python)
51+
2. 2.Under the repository name (upper left), click **Issues**.
52+
3. Click **New Issue**.
53+
4. If the Issue is a bug, use the **Bug report** template and click **Get started**, otherwise click on the **Open a blank issue** link.
54+
5. Provide a **Title** and **description** for the issue. Be sure the title is relevant to the issue and that the description is clear and provided with sufficient detail.
55+
6. When you're finished, click **Submit new issue**. The developers will follow-up once the issue is addressed.
56+
57+
Creating a fork
58+
------------------------
59+
The GitHub platform has the Fork feature that facilitates code modification and contributions. A fork is a new repository that shares code and visibility settings with the original upstream repository. To fork MHKiT-Python, follow the steps below. More information about GitHub Forks can be found [here](https://docs.github.com/en/get-started/quickstart/fork-a-repo)
60+
1. Navigate to the [MHKiT-Python main page](https://github.com/MHKiT-Software/MHKiT-Python)
61+
2. Under the repository name (upper left), click **Fork**.
62+
3. Select an owner for the forked repository.
63+
4. Specify a name for the fork. By default, forks are named the same as their upstream repositories.
64+
5. Add a description of your fork (optional).
65+
6. Choose whether to copy only the default branch or all branches to the new fork. You will only need copy the default branch to contribute to MHKiT-Python.
66+
7. When you're finished, click **Create fork**. You will now have a fork of the MHKiT-Python repository.
67+
68+
Creating a branch
69+
------------------------
70+
The GitHub platform has the branch feature that facilitates code contributions and collaboration amongst developers. A branch isolates development work without affecting other branches in the repository. Each repository has one default branch, and can have multiple other branches. To create a branch of your forked MHKiT-Python repository, follow the steps below. More information about GitHub branches can be found [here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)
71+
1. Navigate to your fork of MHKiT-Python (see instructions above)
72+
2. Above the list of files, click **Branches**.
73+
3. Click **New Branch**.
74+
4. Enter a name for the branch. Be sure to select **MHKiT-Software/MHKiT-Python:master** as the source.
75+
5. Click **Create branch**. You will now have a branch on your fork of MHKiT-Python that you can use to work with the code base.
76+
77+
Creating a pull request
78+
------------------------
79+
The GitHub platform has the pull request feature that allows you to propose changes to a repository such as MHKiT-Python. The pull request will allow the repository administrators to evaluate the pull request. To create a pull request for MHKiT-Python repository, follow the steps below. More information about GitHub pull requests can be found [here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
80+
1. Navigate to the [MHKiT-Python main page](https://github.com/MHKiT-Software/MHKiT-Python)
81+
2. Above the list of files, click **Pull request**.
82+
3. On the compare page, click **Compare accross forks**.
83+
4. In the "base branch" drop-down menu, select the branch of the upstream repository you'd like to merge changes into.
84+
5. In the "head fork" drop-down menu, select your fork, then use the "compare branch" drop-down menu to select the branch you made your changes in.
85+
6. Type a title and description for your pull request.
86+
7. If you want to allow anyone with push access to the upstream repository to make changes to your pull request, select **Allow edits from maintainers**.
87+
8. To create a pull request that is ready for review, click **Create Pull Request**. To create a draft pull request, use the drop-down and select **Create Draft Pull Request**, then click **Draft Pull Request**. More information about draft pull requests can be found [here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests)
88+
9. MHKiT-Python adminstrators will review your pull request and contact you if needed.
89+

0 commit comments

Comments
 (0)