-
Notifications
You must be signed in to change notification settings - Fork 9
Feature/flow system first #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
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 d4a2e74
Update tests
FBumann 2c6d923
Update CHANGELOG.md to mention removed params
FBumann 96d830f
Merge remote-tracking branch 'origin/main' into feature/v5
FBumann 756ccda
Merge branch 'main' into feature/v5
FBumann a8612b0
Merge branch 'main' into feature/v5
FBumann 4ca07f6
Merge branch 'main' into feature/v5
FBumann 6fe49c8
ci: improve and split into multiple files
FBumann 30c4a68
Feature/rename on off to status (#500)
FBumann 60a3e65
Removed all deprecated items
FBumann 5fd9ff5
Feature/excess rename (#501)
FBumann dbc0a78
Feature/docs improvement (#481)
FBumann d0514fc
deprecate results.py and plotting.py and change to storing the soluti…
FBumann 9f9effb
Add migration guide for v6
FBumann d1198e1
Add plotting and statistics tests
FBumann e6da589
1. tests/test_component.py - Fixed tautological assertions in both …
FBumann 2cb7a4f
break: remove final timestep from charge_state and extract into separ…
FBumann 58ce446
Add accessors for plotting, statistics and more (#506)
FBumann 94db61d
Add carrier and color management
FBumann 0d8aaff
Add transform accessor and move sel, isel and resample to this access…
FBumann 1601cac
Add recipies for plotting data (#516)
FBumann 9faf98b
Invalidate and lock FLow system based on solution existance (#518)
FBumann 62aac69
Add better and more versitile sankey diagrams (#514)
FBumann 32e751b
Update tests for new plot method
FBumann 5d32ae9
Extract docs build and deploy into separate workflow (#520)
FBumann b0202b9
fix: docs build CI
FBumann 92fede1
Minor nitpicks
FBumann 75c0aed
revert: solution always having an extra timestep (#523)
FBumann f3dc1e1
Add new user facing notebooks with better user stories (#515)
FBumann 89d0aa2
Change default of Effect.description to ''
FBumann ae7f0b0
Improve backwards compatability and allow saving the solution directly
FBumann b26540b
Make IO more strict to prevent silent errors.
FBumann 59024bc
Add deprecation warning for method for old results
FBumann 3fe1a44
Adjust notebook config to plotly_white theme
FBumann f7beae9
Add default compression to netcdf filesand overwrite=False
FBumann 79a2484
Refactor sankey plots into separate accessor and improve selection of…
FBumann 9150212
Improve carrier, and color handling as well as caching of those
FBumann 446f2aa
Improve validation of size being present
FBumann 2c2ace1
Better notebooks and units in plots (#527)
FBumann 400796c
Update CHANGELOG.md
FBumann ac595bc
minor nitpicks
FBumann 6597916
Updated CHangelog and migration guide
FBumann baed6db
optimize.rolling_horizon() (#528)
FBumann 70f670c
Typo in CHANGELOG.md
FBumann 3bcd81a
Add storage cache
FBumann 3981c3c
invaliudate carrier cache
FBumann 4133f91
Improve robustness
FBumann 68992eb
Added include_solution parameter to to_dataset()
FBumann 002a337
Add flixopt_version to attrs in IO
FBumann 5d17f9a
Typos for better clarity
FBumann 78969bd
drop python 3.10 support and add 3.14 (#529)
FBumann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,7 @@ venv/ | |
| .DS_Store | ||
| lib/ | ||
| temp-plot.html | ||
| .cache | ||
| site/ | ||
| *.egg-info | ||
| uv.lock | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.