Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
6d9bcca
Removing all deprectaed params and warnings
FBumann Nov 19, 2025
d4a2e74
Update tests
FBumann Nov 19, 2025
2c6d923
Update CHANGELOG.md to mention removed params
FBumann Nov 19, 2025
96d830f
Merge remote-tracking branch 'origin/main' into feature/v5
FBumann Nov 21, 2025
756ccda
Merge branch 'main' into feature/v5
FBumann Nov 30, 2025
a8612b0
Merge branch 'main' into feature/v5
FBumann Nov 30, 2025
4ca07f6
Merge branch 'main' into feature/v5
FBumann Nov 30, 2025
6fe49c8
ci: improve and split into multiple files
FBumann Nov 30, 2025
30c4a68
Feature/rename on off to status (#500)
FBumann Nov 30, 2025
60a3e65
Removed all deprecated items
FBumann Nov 30, 2025
5fd9ff5
Feature/excess rename (#501)
FBumann Nov 30, 2025
dbc0a78
Feature/docs improvement (#481)
FBumann Nov 30, 2025
d0514fc
deprecate results.py and plotting.py and change to storing the soluti…
FBumann Dec 3, 2025
9f9effb
Add migration guide for v6
FBumann Dec 4, 2025
d1198e1
Add plotting and statistics tests
FBumann Dec 4, 2025
e6da589
1. tests/test_component.py - Fixed tautological assertions in both …
FBumann Dec 4, 2025
2cb7a4f
break: remove final timestep from charge_state and extract into separ…
FBumann Dec 4, 2025
58ce446
Add accessors for plotting, statistics and more (#506)
FBumann Dec 8, 2025
94db61d
Add carrier and color management
FBumann Dec 8, 2025
0d8aaff
Add transform accessor and move sel, isel and resample to this access…
FBumann Dec 8, 2025
1601cac
Add recipies for plotting data (#516)
FBumann Dec 9, 2025
9faf98b
Invalidate and lock FLow system based on solution existance (#518)
FBumann Dec 9, 2025
62aac69
Add better and more versitile sankey diagrams (#514)
FBumann Dec 9, 2025
32e751b
Update tests for new plot method
FBumann Dec 9, 2025
5d32ae9
Extract docs build and deploy into separate workflow (#520)
FBumann Dec 10, 2025
b0202b9
fix: docs build CI
FBumann Dec 10, 2025
92fede1
Minor nitpicks
FBumann Dec 10, 2025
75c0aed
revert: solution always having an extra timestep (#523)
FBumann Dec 10, 2025
f3dc1e1
Add new user facing notebooks with better user stories (#515)
FBumann Dec 10, 2025
89d0aa2
Change default of Effect.description to ''
FBumann Dec 11, 2025
ae7f0b0
Improve backwards compatability and allow saving the solution directly
FBumann Dec 11, 2025
b26540b
Make IO more strict to prevent silent errors.
FBumann Dec 11, 2025
59024bc
Add deprecation warning for method for old results
FBumann Dec 11, 2025
3fe1a44
Adjust notebook config to plotly_white theme
FBumann Dec 12, 2025
f7beae9
Add default compression to netcdf filesand overwrite=False
FBumann Dec 12, 2025
79a2484
Refactor sankey plots into separate accessor and improve selection of…
FBumann Dec 12, 2025
9150212
Improve carrier, and color handling as well as caching of those
FBumann Dec 12, 2025
446f2aa
Improve validation of size being present
FBumann Dec 12, 2025
2c2ace1
Better notebooks and units in plots (#527)
FBumann Dec 13, 2025
400796c
Update CHANGELOG.md
FBumann Dec 13, 2025
ac595bc
minor nitpicks
FBumann Dec 13, 2025
6597916
Updated CHangelog and migration guide
FBumann Dec 13, 2025
baed6db
optimize.rolling_horizon() (#528)
FBumann Dec 13, 2025
70f670c
Typo in CHANGELOG.md
FBumann Dec 13, 2025
3bcd81a
Add storage cache
FBumann Dec 13, 2025
3981c3c
invaliudate carrier cache
FBumann Dec 13, 2025
4133f91
Improve robustness
FBumann Dec 13, 2025
68992eb
Added include_solution parameter to to_dataset()
FBumann Dec 13, 2025
002a337
Add flixopt_version to attrs in IO
FBumann Dec 13, 2025
5d17f9a
Typos for better clarity
FBumann Dec 13, 2025
78969bd
drop python 3.10 support and add 3.14 (#529)
FBumann Dec 14, 2025
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
108 changes: 108 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Docs

on:
push:
branches: [main]
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'flixopt/**'
pull_request:
paths:
- 'docs/**'
- 'mkdocs.yml'
workflow_dispatch:
workflow_call:
inputs:
deploy:
type: boolean
default: false
version:
type: string
required: false

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
PYTHON_VERSION: "3.11"
MPLBACKEND: Agg
PLOTLY_RENDERER: json

jobs:
build:
name: Build documentation
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0

- uses: astral-sh/setup-uv@v7
with:
version: "0.9.10"
enable-cache: true

- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Extract changelog
run: |
cp CHANGELOG.md docs/changelog.md
python scripts/format_changelog.py

- name: Install dependencies
run: uv pip install --system ".[docs,full]"

- name: Build docs
run: mkdocs build --strict

- uses: actions/upload-artifact@v4
with:
name: docs
path: site/
retention-days: 7

deploy:
name: Deploy documentation
needs: build
if: ${{ inputs.deploy == true && inputs.version != '' }}
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0

- uses: astral-sh/setup-uv@v7
with:
version: "0.9.10"
enable-cache: true

- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install mike
run: uv pip install --system mike

- uses: actions/download-artifact@v4
with:
name: docs
path: site/

- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: Deploy docs
run: |
VERSION=${{ inputs.version }}
VERSION=${VERSION#v}
mike deploy --push --update-aliases --no-build $VERSION latest
mike set-default --push latest
40 changes: 5 additions & 35 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
name: Run tests
needs: [check-preparation]
if: needs.check-preparation.outputs.prepared == 'true'
uses: ./.github/workflows/test.yaml
uses: ./.github/workflows/tests.yaml

build:
name: Build package
Expand Down Expand Up @@ -188,37 +188,7 @@ jobs:
name: Deploy documentation
needs: [create-release]
if: "!contains(github.ref, 'alpha') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc')"
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0

- uses: astral-sh/setup-uv@v6
with:
version: "0.9.10"

- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Extract changelog
run: |
uv pip install --system packaging
python scripts/extract_changelog.py

- name: Install docs dependencies
run: uv pip install --system ".[docs]"

- name: Configure Git
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com

- name: Deploy docs
run: |
VERSION=${GITHUB_REF#refs/tags/v}
mike deploy --push --update-aliases $VERSION latest
mike set-default --push latest
uses: ./.github/workflows/docs.yaml
with:
deploy: true
version: ${{ github.ref_name }}
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml → .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
branches: [main]
pull_request:
branches: ["*"]
branches: ["**"]
workflow_dispatch:
workflow_call: # Allow release.yaml to call this workflow
workflow_call: # Allow release.yaml to call this workflow.

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
python-version: ['3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v5

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ venv/
.DS_Store
lib/
temp-plot.html
.cache
site/
*.egg-info
uv.lock
13 changes: 10 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@ repos:
- id: check-yaml
exclude: ^mkdocs\.yml$ # Skip mkdocs.yml
- id: check-added-large-files
exclude: ^examples/resources/Zeitreihen2020\.csv$

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.4
hooks:
- id: ruff-check
args: [ --fix ]
- id: ruff-format
- id: ruff-check
args: [ --fix ]
- id: ruff-format

- repo: https://github.com/kynan/nbstripout
rev: 0.8.2
hooks:
- id: nbstripout
files: ^docs/examples.*\.ipynb$
Loading