Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
cc7de38
Feature/398 feature facet plots in results (#419)
FBumann Oct 18, 2025
fedd6b6
Feature/398 feature facet plots in results heatmaps (#418)
FBumann Oct 18, 2025
84aa03d
Feature/398 feature facet plots in results charge state (#417)
FBumann Oct 18, 2025
51da844
Fix Error handling in plot_heatmap()
FBumann Oct 18, 2025
b94f223
Feature/398 feature facet plots in results pie (#421)
FBumann Oct 18, 2025
b2b8eb7
6. Optimized time-step check
FBumann Oct 18, 2025
c747faf
Typo
FBumann Oct 18, 2025
bf4e33d
Improve type handling
FBumann Oct 18, 2025
0c5764c
Update other tests
FBumann Oct 18, 2025
59ada64
Handle backwards compatability
FBumann Oct 18, 2025
b56ed12
Add better error messages if both new and old api are used
FBumann Oct 18, 2025
980d7de
Add old api explicitly
FBumann Oct 18, 2025
9aea60e
Add old api explicitly
FBumann Oct 18, 2025
922a95f
Improve consistency and properly deprectae the indexer parameter
FBumann Oct 18, 2025
bd88fb1
Remove amount of new tests
FBumann Oct 18, 2025
f156d3a
Remove amount of new tests
FBumann Oct 18, 2025
ab9e4a8
Fix CONTRIBUTING.md
FBumann Oct 18, 2025
a77b942
Remove old test file
FBumann Oct 18, 2025
18ba271
Add tests/test_heatmap_reshape.py
FBumann Oct 18, 2025
894533c
Add tests/test_heatmap_reshape.py
FBumann Oct 18, 2025
30ab7ec
Remove unused method
FBumann Oct 18, 2025
4763c29
- Implemented dashed line styling for "mixed" variables (variables …
FBumann Oct 18, 2025
e180e88
- Added fill parameter to module-level plot_heatmap function (line …
FBumann Oct 18, 2025
9c3c580
- Added np.random.seed(42) for reproducible test results
FBumann Oct 18, 2025
5938829
Improve Error Message if too many dims for matplotlib
FBumann Oct 18, 2025
33cd72a
Improve Error Message if too many dims for matplotlib
FBumann Oct 18, 2025
505edca
Improve Error Message if too many dims for matplotlib
FBumann Oct 18, 2025
33c4bec
Rename _apply_indexer_to_data() to _apply_selection_to_data()
FBumann Oct 19, 2025
b37dc6a
Bugfix
FBumann Oct 19, 2025
9ce25ab
Update CHANGELOG.md
FBumann Oct 19, 2025
bbad6cb
Catch edge case in with_plotly()
FBumann Oct 19, 2025
92d0590
Add strict=True
FBumann Oct 19, 2025
ae05346
Improve scenario_example.py
FBumann Oct 19, 2025
904be27
Improve scenario_example.py
FBumann Oct 19, 2025
2c8bd7f
Change logging level in essage about time reshape
FBumann Oct 19, 2025
55dfde9
Update CHANGELOG.md
FBumann Oct 19, 2025
9cef222
Merge remote-tracking branch 'origin/main' into feature/plots-with-fa…
FBumann Oct 19, 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
Prev Previous commit
Next Next commit
Catch edge case in with_plotly()
  • Loading branch information
FBumann committed Oct 19, 2025
commit bbad6cbe174c3032f8afea7196ff61fab6df9994
8 changes: 7 additions & 1 deletion flixopt/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,13 @@ def with_plotly(
df_long = df_long.rename(columns={data.name: 'value'})
else:
# Unnamed DataArray, find the value column
value_col = [col for col in df_long.columns if col not in data.dims][0]
non_dim_cols = [col for col in df_long.columns if col not in data.dims]
if len(non_dim_cols) != 1:
raise ValueError(
f'Expected exactly one non-dimension column for unnamed DataArray, '
f'but found {len(non_dim_cols)}: {non_dim_cols}'
)
value_col = non_dim_cols[0]
df_long = df_long.rename(columns={value_col: 'value'})
df_long['variable'] = data.name or 'data'
else:
Expand Down