-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from NREL/develop
Version 2.3
- Loading branch information
Showing
36 changed files
with
724 additions
and
306 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Description and Purpose | ||
|
||
## Type of change | ||
What types of change is it? | ||
_Select the appropriate type(s) that describe this PR_ | ||
|
||
- [ ] Bugfix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (non-backwards-compatible fix or feature) | ||
- [ ] Code style update (formatting, renaming) | ||
- [ ] Refactoring (no functional changes, no API changes) | ||
- [ ] Documentation update | ||
- [ ] Maintenance update | ||
- [ ] Other (please describe) | ||
|
||
## Github issues addressed, if one exists | ||
|
||
## Examples/Testing, if applicable | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
name: CI_rosco-toolbox | ||
|
||
# We run CI on push commits on all branches | ||
on: [push, pull_request] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build: | ||
name: Build (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: ["ubuntu-latest", "macOS-latest", "windows-latest"] | ||
python-version: ["3.8"] | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
channels: conda-forge, general | ||
auto-update-conda: true | ||
python-version: 3.8 | ||
environment-file: environment.yml | ||
|
||
|
||
# Install dependencies of ROSCO toolbox | ||
- name: Add dependencies ubuntu specific | ||
if: false == contains( matrix.os, 'windows') | ||
run: | | ||
conda install -y compilers | ||
conda install -y wisdem | ||
- name: Add dependencies windows specific | ||
if: true == contains( matrix.os, 'windows') | ||
run: | | ||
conda install -y m2w64-toolchain libpython | ||
conda install -y wisdem | ||
# Install ROSCO toolbox | ||
- name: Install ROSCO toolbox | ||
run: | | ||
python setup.py develop --compile-rosco | ||
run_examples: | ||
name: Run Examples | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: ["ubuntu-latest"] #, "macOS-latest"] | ||
python-version: ["3.8"] | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
channels: conda-forge, general | ||
auto-update-conda: true | ||
python-version: 3.8 | ||
environment-file: environment.yml | ||
|
||
|
||
# Install dependencies of ROSCO toolbox | ||
- name: Add dependencies ubuntu specific | ||
if: false == contains( matrix.os, 'windows') | ||
run: | | ||
conda install -y compilers | ||
conda install -y wisdem | ||
# Install ROSCO toolbox | ||
- name: Install ROSCO toolbox | ||
run: | | ||
python setup.py develop --compile-rosco | ||
# Install OpenFAST | ||
- name: Install OpenFAST | ||
run: | | ||
conda install openfast==3.0.0 | ||
# Run examples | ||
- name: Run examples | ||
run: | | ||
cd Examples | ||
python run_examples.py | ||
run_testing: | ||
name: Run Testing | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: ["ubuntu-latest"] #, "macOS-latest"] | ||
python-version: ["3.8"] | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
channels: conda-forge, general | ||
auto-update-conda: true | ||
python-version: 3.8 | ||
environment-file: environment.yml | ||
|
||
|
||
# Install dependencies of ROSCO toolbox | ||
- name: Add dependencies ubuntu specific | ||
if: false == contains( matrix.os, 'windows') | ||
run: | | ||
conda install -y compilers | ||
conda install -y wisdem | ||
# Install ROSCO toolbox | ||
- name: Install ROSCO toolbox | ||
run: | | ||
python setup.py develop --compile-rosco | ||
# Install OpenFAST | ||
- name: Install OpenFAST | ||
run: | | ||
conda install openfast==3.0.0 | ||
# Run Testing | ||
- name: Run testing | ||
run: | | ||
cd ROSCO_testing | ||
python ROSCO_testing.py |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Upload to PyPi | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
if: startsWith(github.ref, 'refs/tags') | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "ROSCO"] | ||
path = ROSCO | ||
url = https://github.com/NREL/ROSCO | ||
branch = main | ||
branch = main |
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
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
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
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
Submodule ROSCO
updated
13 files
+20 −0 | .github/pull_request_template.md | |
+62 −0 | .github/workflows/CI_rosco.yml | |
+1 −1 | CMakeLists.txt | |
+2 −2 | README.md | |
+3 −0 | environment.yml | |
+1 −0 | src/Constants.f90 | |
+101 −13 | src/ControllerBlocks.f90 | |
+33 −21 | src/Controllers.f90 | |
+16 −5 | src/DISCON.F90 | |
+2 −3 | src/Filters.f90 | |
+197 −21 | src/Functions.f90 | |
+13 −4 | src/ROSCO_Types.f90 | |
+1,325 −483 | src/ReadSetParameters.f90 |
Oops, something went wrong.