Skip to content

Commit

Permalink
fix(docs): fix zero linerate in docs, prepare for release 🚀 (#23)
Browse files Browse the repository at this point in the history
* fix(docs): fix zero linerate in example

* ci: include python 3.12

* run test pipeline on python 3.12

* run deploy pipeline on python 3.12

* build: add upper limit to Python version (<3.13)
  • Loading branch information
amundfr authored Apr 8, 2024
1 parent 67b6db0 commit 99b0869
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- name: install poetry
run: |
python -m pip install --upgrade pip wheel pipx
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- name: install poetry
run: |
python -m pip install --upgrade pip wheel pipx
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.9', '3.10', '3.11']
python: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion examples/plot_cigre.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
# Compute line rating and temperature
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

max_conductor_temperature = np.linspace(0, 100, 101)
max_conductor_temperature = np.linspace(26, 100, 75)
current_load = np.linspace(0, 1_000, 101)

conductor_rating = model.compute_steady_state_ampacity(max_conductor_temperature)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repository = "https://github.com/statnett/linerate.git"
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
python = ">=3.9,<3.13"
numpy = "*"
scipy = "*"
numba = ">=0.56.4"
Expand Down

0 comments on commit 99b0869

Please sign in to comment.