Skip to content

Commit

Permalink
Bug fix: GCH effective yaw angle in FLORIS v2 (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Dec 8, 2023
1 parent 6e856e5 commit 00a40e9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration-workflow.yaml
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
# 3.5 fails with a bad comparison in TurbineMap unit tests
python-version: [3.6, 3.7, 3.8, 3.9] # 3.5
python-version: ["3.8", "3.9", "3.10", "3.11"]
# windows-latest fails in codecov
os: [ubuntu-latest, macos-latest]
fail-fast: False
Expand Down Expand Up @@ -60,4 +60,4 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
fail_ci_if_error: false
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -55,15 +55,15 @@ Citation
If FLORIS played a role in your research, please cite it. This software can be
cited as:

FLORIS. Version 2.4 (2021). Available at https://github.com/NREL/floris.
FLORIS. Version 2.5.1 (2021). Available at https://github.com/NREL/floris.

For LaTeX users:

.. code-block:: latex

@misc{FLORIS_2021,
author = {NREL},
title = {FLORIS. Version 2.4},
title = {FLORIS. Version 2.5.1},
year = {2021},
publisher = {GitHub},
journal = {GitHub repository},
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Expand Up @@ -74,15 +74,15 @@ Citation
If FLORIS played a role in your research, please cite it. This software can be
cited as:

FLORIS. Version 2.4 (2021). Available at https://github.com/NREL/floris.
FLORIS. Version 2.5.1 (2021). Available at https://github.com/NREL/floris.

For LaTeX users:

.. code-block:: latex

@misc{FLORIS_2021,
author = {NREL},
title = {FLORIS. Version 2.4},
title = {FLORIS. Version 2.5.1},
year = {2021},
publisher = {GitHub},
journal = {GitHub repository},
Expand Down
2 changes: 1 addition & 1 deletion floris/VERSION
@@ -1 +1 @@
2.4
2.5.1
2 changes: 1 addition & 1 deletion floris/simulation/wake_deflection/gauss.py
Expand Up @@ -348,7 +348,7 @@ def calculate_effective_yaw_angle(
yaw_effective = max_yaw
# check edge case, if true, assign min yaw value
elif idx_1 == 0 or idx_2 == 0:
yaw_effective = -min_yaw
yaw_effective = min_yaw
# for each identified minimum residual, use adjacent points to determine
# two equations of line and find the intersection of the two lines to
# determine the effective yaw angle to add; the if/else structure is based
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -10,7 +10,7 @@ scipy>=1.1
pandas>=0.24
pyproj>=2.1
seaborn>=0.9
sklearn>=0.0
scikit-learn
shapely>=1.7.1

# utilities
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Expand Up @@ -34,7 +34,7 @@
URL = "https://github.com/NREL/FLORIS"
EMAIL = "rafael.mudafort@nrel.gov"
AUTHOR = "NREL National Wind Technology Center"
REQUIRES_PYTHON = ">=3.6.0"
REQUIRES_PYTHON = ">=3.8.0"

# What packages are required for this module to be executed?
REQUIRED = [
Expand All @@ -48,7 +48,7 @@
"pandas>=0.24",
"pyproj>=2.1",
"seaborn>=0.9",
"sklearn>=0.0",
"scikit-learn",
"shapely>=1.7.1",
]

Expand Down Expand Up @@ -105,7 +105,7 @@
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down

0 comments on commit 00a40e9

Please sign in to comment.