Skip to content

Commit

Permalink
fix: do not add LVstations of agg. LA to MV graph
Browse files Browse the repository at this point in the history
  • Loading branch information
nesnoj committed Aug 24, 2017
1 parent 85785e1 commit 48ad5c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions edisgo/data/import_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,11 @@ def aggregate_loads(la_center, aggr):
'geom': la_center.lv_load_area.geo_area}

# Determine LV grids/ stations that are aggregated
stations = [_.lv_grid.station()
for _ in la_center.lv_load_area._lv_grid_districts]
for _ in la_center.lv_load_area._lv_grid_districts:
aggr_stations.append(_.lv_grid.station())

# add elements to lists
aggregated.append(aggr)
aggr_stations.append(stations)


return aggregated, aggr_stations
Expand Down Expand Up @@ -591,7 +590,8 @@ def _validate_dingo_mv_grid_import(grid, dingo_grid):
'lv_station'))
data_integrity['lv_station']['dingo'] = len(
[_ for _ in dingo_grid._graph.nodes()
if isinstance(_, LVStationDing0)])
if (isinstance(_, LVStationDing0) and
not _.grid.grid_district.lv_load_area.is_aggregated)])

# Check number of lines outside aggregated LA
# edges_w_la = grid.graph.graph_edges()
Expand Down

0 comments on commit 48ad5c4

Please sign in to comment.