Commit 75a2391
authored
* Feature/398 feature facet plots in results (#419)
* Add animation and faceting options to plots
* Adjust size of the frame
* Utilize plotly express directly
* Rmeocve old class
* Use plotly express and modify stackgroup afterwards
* Add modifications also to animations
* Mkae more compact
* Remove height stuff
* Remove line and make set opacity =0 for area
* Integrate faceting and animating into existing with_plotly method
* Improve results.py
* Improve results.py
* Move check if dims are found to plotting.py
* Fix usage of indexer
* Change selection string with indexer
* Change behaviout of parameter "indexing"
* Update CHANGELOG.md
* Add new selection parameter to plotting methods
* deprectae old indexer parameter
* deprectae old indexer parameter
* Add test
* Add test
* Add test
* Add test
* Fix not supportet check for matplotlib
* Typo in CHANGELOG.md
* Feature/398 feature facet plots in results heatmaps (#418)
* Add animation and faceting options to plots
* Adjust size of the frame
* Utilize plotly express directly
* Rmeocve old class
* Use plotly express and modify stackgroup afterwards
* Add modifications also to animations
* Mkae more compact
* Remove height stuff
* Remove line and make set opacity =0 for area
* Integrate faceting and animating into existing with_plotly method
* Improve results.py
* Improve results.py
* Move check if dims are found to plotting.py
* Fix usage of indexer
* Change selection string with indexer
* Change behaviout of parameter "indexing"
* Update CHANGELOG.md
* Add new selection parameter to plotting methods
* deprectae old indexer parameter
* deprectae old indexer parameter
* Add test
* Add test
* Add test
* Add test
* Add heatmap support
* Unify to a single heatmap method per engine
* Change defaults
* readd time reshaping
* readd time reshaping
* lengthen scenario example
* Update
* Improve heatmap plotting
* Improve heatmap plotting
* Moved reshaping to plotting.py
* COmbinations are possible!
* Improve 'auto'behavioour
* Improve 'auto' behavioour
* Improve 'auto' behavioour
* Allow multiple variables in a heatmap
* Update modeule level plot_heatmap()
* remove code duplication
* Allow Dataset instead of List of DataArrays
* Allow Dataset instead of List of DataArrays
* Update plot tests
* FIx Missing renme in ElementResults.plot_heatmap()
* Update API
* Feature/398 feature facet plots in results charge state (#417)
* Add animation and faceting options to plots
* Adjust size of the frame
* Utilize plotly express directly
* Rmeocve old class
* Use plotly express and modify stackgroup afterwards
* Add modifications also to animations
* Mkae more compact
* Remove height stuff
* Remove line and make set opacity =0 for area
* Integrate faceting and animating into existing with_plotly method
* Improve results.py
* Improve results.py
* Move check if dims are found to plotting.py
* Fix usage of indexer
* Change selection string with indexer
* Change behaviout of parameter "indexing"
* Update CHANGELOG.md
* Add new selection parameter to plotting methods
* deprectae old indexer parameter
* deprectae old indexer parameter
* Add test
* Add test
* Add test
* Add test
* Add heatmap support
* Unify to a single heatmap method per engine
* Change defaults
* readd time reshaping
* readd time reshaping
* lengthen scenario example
* Update
* Improve heatmap plotting
* Improve heatmap plotting
* Moved reshaping to plotting.py
* COmbinations are possible!
* Improve 'auto'behavioour
* Improve 'auto' behavioour
* Improve 'auto' behavioour
* Allow multiple variables in a heatmap
* Update modeule level plot_heatmap()
* remove code duplication
* Allow Dataset instead of List of DataArrays
* Allow Dataset instead of List of DataArrays
* Add tests
* More examples
* Update plot_charge state()
* Try 1
* Try 2
* Add more examples
* Add more examples
* Add smooth line for charge state and use "area" as default
* Update scenario_example.py
* Update tests
* Fix Error handling in plot_heatmap()
* Feature/398 feature facet plots in results pie (#421)
* Add animation and faceting options to plots
* Adjust size of the frame
* Utilize plotly express directly
* Rmeocve old class
* Use plotly express and modify stackgroup afterwards
* Add modifications also to animations
* Mkae more compact
* Remove height stuff
* Remove line and make set opacity =0 for area
* Integrate faceting and animating into existing with_plotly method
* Improve results.py
* Improve results.py
* Move check if dims are found to plotting.py
* Fix usage of indexer
* Change selection string with indexer
* Change behaviout of parameter "indexing"
* Update CHANGELOG.md
* Add new selection parameter to plotting methods
* deprectae old indexer parameter
* deprectae old indexer parameter
* Add test
* Add test
* Add test
* Add test
* Add heatmap support
* Unify to a single heatmap method per engine
* Change defaults
* readd time reshaping
* readd time reshaping
* lengthen scenario example
* Update
* Improve heatmap plotting
* Improve heatmap plotting
* Moved reshaping to plotting.py
* COmbinations are possible!
* Improve 'auto'behavioour
* Improve 'auto' behavioour
* Improve 'auto' behavioour
* Allow multiple variables in a heatmap
* Update modeule level plot_heatmap()
* remove code duplication
* Allow Dataset instead of List of DataArrays
* Allow Dataset instead of List of DataArrays
* Add tests
* More examples
* Update plot_charge state()
* Try 1
* Try 2
* Add more examples
* Add more examples
* Add smooth line for charge state and use "area" as default
* Update scenario_example.py
* Update tests
* Handle extra dims in pie plots by selecting the first
* 6. Optimized time-step check
- Replaced pandas Series diff() with NumPy np.diff() for better performance
- Changed check from > 0 to > 1 (can't calculate diff with 0 or 1 element)
- Converted to seconds first, then to minutes to avoid pandas timedelta conversion issues
* Typo
* Improve type handling
* Update other tests
* Handle backwards compatability
* Add better error messages if both new and old api are used
* Add old api explicitly
* Add old api explicitly
* Improve consistency and properly deprectae the indexer parameter
* Remove amount of new tests
* Remove amount of new tests
* Fix CONTRIBUTING.md
* Remove old test file
* Add tests/test_heatmap_reshape.py
* Add tests/test_heatmap_reshape.py
* Remove unused method
* - Implemented dashed line styling for "mixed" variables (variables with both positive and negative values)
- Only stack "positive" and "negative" classifications, not "mixed" or "zero"
* - Added fill parameter to module-level plot_heatmap function (line 1914)
- Added fill parameter to CalculationResults.plot_heatmap method (line 702)
- Forwarded fill parameter to both heatmap_with_plotly and heatmap_with_matplotlib functions
* - Added np.random.seed(42) for reproducible test results
- Added specific size assertions to all tests:
- Daily/hourly pattern: 3 days × 24 hours
- Weekly/daily pattern: 1 week × 7 days
- Irregular data: 25 hours × 60 minutes
- Multidimensional: 2 days × 24 hours with preserved scenario dimension
* Improve Error Message if too many dims for matplotlib
* Improve Error Message if too many dims for matplotlib
* Improve Error Message if too many dims for matplotlib
* Rename _apply_indexer_to_data() to _apply_selection_to_data()
* Bugfix
* Update CHANGELOG.md
* Catch edge case in with_plotly()
* Add strict=True
* Improve scenario_example.py
* Improve scenario_example.py
* Change logging level in essage about time reshape
* Update CHANGELOG.md
1 parent 84ab912 commit 75a2391
11 files changed
Lines changed: 1632 additions & 652 deletions
File tree
- .github
- examples/04_Scenarios
- flixopt
- tests
- ressources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
| 71 | + | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
| |||
75 | 84 | | |
76 | 85 | | |
77 | 86 | | |
| 87 | + | |
78 | 88 | | |
79 | 89 | | |
80 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
21 | 67 | | |
22 | | - | |
| 68 | + | |
23 | 69 | | |
24 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
25 | 85 | | |
26 | 86 | | |
27 | 87 | | |
| |||
35 | 95 | | |
36 | 96 | | |
37 | 97 | | |
38 | | - | |
| 98 | + | |
39 | 99 | | |
40 | 100 | | |
41 | | - | |
| 101 | + | |
| 102 | + | |
42 | 103 | | |
43 | 104 | | |
44 | 105 | | |
45 | 106 | | |
46 | | - | |
| 107 | + | |
47 | 108 | | |
48 | 109 | | |
49 | 110 | | |
50 | 111 | | |
| 112 | + | |
51 | 113 | | |
52 | 114 | | |
53 | | - | |
| 115 | + | |
54 | 116 | | |
55 | 117 | | |
56 | 118 | | |
| |||
63 | 125 | | |
64 | 126 | | |
65 | 127 | | |
| 128 | + | |
66 | 129 | | |
67 | 130 | | |
68 | | - | |
69 | | - | |
| 131 | + | |
| 132 | + | |
70 | 133 | | |
71 | 134 | | |
72 | 135 | | |
73 | 136 | | |
74 | 137 | | |
75 | | - | |
| 138 | + | |
| 139 | + | |
76 | 140 | | |
77 | 141 | | |
78 | 142 | | |
79 | 143 | | |
80 | 144 | | |
81 | 145 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
87 | 150 | | |
88 | 151 | | |
89 | 152 | | |
| |||
94 | 157 | | |
95 | 158 | | |
96 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
97 | 167 | | |
98 | 168 | | |
99 | 169 | | |
100 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
101 | 176 | | |
102 | 177 | | |
103 | 178 | | |
| |||
124 | 199 | | |
125 | 200 | | |
126 | 201 | | |
127 | | - | |
128 | 202 | | |
129 | | - | |
130 | 203 | | |
| 204 | + | |
| 205 | + | |
131 | 206 | | |
132 | 207 | | |
133 | 208 | | |
134 | 209 | | |
135 | 210 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 211 | | |
144 | 212 | | |
0 commit comments