Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflows will upload a Python Package using Twine when a release is created
# Published via GitHub Actions as a PyPI Trusted Publisher.
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# and: https://docs.pypi.org/trusted-publishers/

name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:
environment: release-pypi
if: github.repository_owner == 'NatLabRockies'
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install dependencies and build package
run: |
python -m pip install --upgrade pip
pip install build twine
python -m build
twine check --strict dist/*
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: True
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ examples/*/logfloris*
*.h5

# Exceptions
!examples/example_inputs/*.csv
!examples/*/inputs/*.csv
examples/lookup-based_wake_steering_florisstandin/inputs/amr_standin_data.csv

Expand Down
2 changes: 2 additions & 0 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ producing:
graphics/wf-power-tracking-plot.png
)

Ramp rate limits are also applied in this example, but can be modified by changing the `ramp_rate_limit` variable in runscript.py or switched off by setting `ramp_rate_limit = None`.

(examples_simplehybrid)=
## simple_hybrid_plant
Example of a wind + solar + battery hybrid power plant using the
Expand Down
Binary file modified docs/graphics/wf-power-tracking-plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading