Skip to content

Commit 2aa9f2a

Browse files
authored
Merge pull request #656 from NREL/develop
FLORIS v3.4
2 parents 16628a0 + 7c879f1 commit 2aa9f2a

103 files changed

Lines changed: 8568 additions & 1509 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ This form is written in GitHub's Markdown format. For a reference on this type
1717
of syntax, see GitHub's documentation:
1818
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
1919
20+
This template contains guidance for your submission within the < ! - -, - - > blocks.
21+
These are comments in HTML syntax and will not appear in the submission.
22+
Be sure to use the "Preview" feature on GitHub to ensure your submission is formatted as intended.
23+
2024
When including code snippets, please paste the text itself and wrap the code block with
2125
ticks (see the other character on the tilde ~ key in a US keyboard) to format it as code.
2226
For example, Python code should be wrapped in ticks like this:

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ This form is written in GitHub's Markdown format. For a reference on this type
1616
of syntax, see GitHub's documentation:
1717
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
1818
19+
This template contains guidance for your submission within the < ! - -, - - > blocks.
20+
These are comments in HTML syntax and will not appear in the submission.
21+
Be sure to use the "Preview" feature on GitHub to ensure your submission is formatted as intended.
22+
1923
When including code snippets, please paste the text itself and wrap the code block with
2024
ticks (see the other character on the tilde ~ key in a US keyboard) to format it as code.
2125
For example, Python code should be wrapped in ticks like this:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ This form is written in GitHub's Markdown format. For a reference on this type
1414
of syntax, see GitHub's documentation:
1515
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
1616
17+
This template contains guidance for your submission within the < ! - -, - - > blocks.
18+
These are comments in HTML syntax and will not appear in the submission.
19+
Be sure to use the "Preview" feature on GitHub to ensure your submission is formatted as intended.
20+
1721
When including code snippets, please paste the text itself and wrap the code block with
1822
ticks (see the other character on the tilde ~ key in a US keyboard) to format it as code.
1923
For example, Python code should be wrapped in ticks like this:

.github/workflows/check-working-examples.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
python-version: [3.9]
11+
python-version: ["3.10"]
1212
os: [ubuntu-latest] #, macos-latest, windows-latest]
1313
fail-fast: False
1414

@@ -21,7 +21,6 @@ jobs:
2121
- name: Install project
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install -r requirements.txt
2524
pip install -e .
2625
pip install nbconvert # For converting Jupyter notebook to python script in the next step
2726
- name: Run examples

.github/workflows/continuous-integration-workflow.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
python-version: [3.9]
11+
python-version: ["3.8", "3.9", "3.10"]
1212
os: [ubuntu-latest] #, macos-latest, windows-latest]
1313
fail-fast: False
14+
env:
15+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1416

1517
steps:
1618
- uses: actions/checkout@v3
@@ -38,8 +40,9 @@ jobs:
3840
pip install pytest-cov
3941
pytest --cov=./ --cov-report=xml tests/ --ignore tests/reg_tests --ignore tests/timing.py --ignore tests/profiling.py
4042
- name: Upload coverage to Codecov
43+
if: ${{ env.CODECOV_TOKEN }} # Don't attempt to upload if the codecov token is not configured
4144
uses: codecov/codecov-action@v3
4245
with:
43-
token: ${{ secrets.CODECOV_TOKEN }}
46+
token: ${{ env.CODECOV_TOKEN }}
4447
files: ./coverage.xml
4548
fail_ci_if_error: true

.github/workflows/deploy-pages.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ jobs:
1515
- uses: actions/checkout@v2
1616

1717
# Install dependencies
18-
- name: Set up Python 3.8
19-
uses: actions/setup-python@v2
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
2020
with:
21-
python-version: 3.8
21+
python-version: "3.10"
2222

2323
- name: Install dependencies
2424
run: |
25-
pip install -r docs/requirements.txt
26-
pip install -e .
25+
pip install -e ".[docs]"
2726
2827
# Build the book
2928
- name: Build the book

.github/workflows/quality-metrics-workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
python-version: [3.9]
11+
python-version: ["3.10"]
1212
os: [ubuntu-latest]
1313
fail-fast: False
1414

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
__pycache__/
44
.cache
55
*.ipynb
6+
*.ipynb_checkpoints
67
*.pyc
78
*.egg-info
89
dist
910
build
1011
.pytest_cache
12+
.ruff_cache
1113

1214
# pip meta data
1315
pip-wheel-metadata

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ repos:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-executables-have-shebangs
10-
- id: check-json
1110
- id: check-yaml
11+
args: [--unsafe]
1212
- id: check-merge-conflict
1313
- id: check-symlinks
1414
- id: mixed-line-ending
15-
# - id: pretty-format-json
16-
# args: [--autofix, --no-sort-keys]
1715

1816
- repo: https://github.com/charliermarsh/ruff-pre-commit
1917
rev: v0.0.241

docs/_config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
title: FLORIS
55
author: National Renewable Energy Laboratory
66
logo: gch.gif
7-
copyright: '2022'
8-
only_build_toc_files: true
7+
copyright: '2023'
8+
only_build_toc_files: false
99

1010
# Force re-execution of notebooks on each build.
1111
# See https://jupyterbook.org/content/execute.html
@@ -23,7 +23,7 @@ bibtex_bibfiles:
2323

2424
# Information about where the book exists on the web
2525
repository:
26-
url: https://github.com/nrel/floris
26+
url: https://github.com/NREL/floris
2727
path_to_book: docs
2828
branch: main
2929

@@ -45,6 +45,7 @@ sphinx:
4545
- 'sphinx_autodoc_typehints'
4646
- 'sphinxcontrib.autoyaml'
4747
- 'sphinx.ext.napoleon' # Formats google and numpy docstring styles
48+
- 'sphinxcontrib.mermaid'
4849
config:
4950
html_theme: sphinx_book_theme
5051
templates_path:

0 commit comments

Comments
 (0)