File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
10
10
### Changed
11
11
12
12
### Removed
13
+ - Removed duplicated code within ` plots.grid ` [ #346 ] ( https://github.com/ie3-institute/pypsdm/issues/346 )
13
14
14
15
### Fixed
15
16
- Removed ` q_characteristics ` from ` create_energy_management_systems_data ` [ #326 ] ( https://github.com/ie3-institute/pypsdm/issues/326 )
Original file line number Diff line number Diff line change @@ -191,13 +191,7 @@ def _node_trace(data, color):
191
191
192
192
if highlights is not None :
193
193
if isinstance (highlights , dict ):
194
- rmd = []
195
- for nodes in highlights .values ():
196
- rmd .extend (nodes )
197
- rmd = nodes_data .drop (rmd )
198
- _node_trace (rmd , BLUE )
199
-
200
- # plot highlighted nodes second so they are on top
194
+ # plot not highlighted nodes first
201
195
rmd = []
202
196
for nodes in highlights .values ():
203
197
rmd .extend (nodes )
@@ -209,10 +203,7 @@ def _node_trace(data, color):
209
203
highlighted_nodes = nodes_data .loc [nodes ]
210
204
_node_trace (highlighted_nodes , color )
211
205
elif isinstance (highlights , list ):
212
- rmd = nodes_data .drop (highlights )
213
- _node_trace (rmd , BLUE )
214
-
215
- # plot highlighted nodes second so they are on top
206
+ # plot not highlighted nodes first
216
207
rmd = nodes_data .drop (highlights )
217
208
_node_trace (rmd , BLUE )
218
209
You can’t perform that action at this time.
0 commit comments