• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openego / eDisGo / 33605646597
83%
dev: 84%

Build:
Build:
LAST BUILD BRANCH: 739-task-decouple_regular_test_suite_from_live_OEP_access
DEFAULT BRANCH: dev
Ran 02 Sep 2026 09:23AM UTC
Jobs 1
Files 68
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Sep 2026 07:50AM UTC coverage: 83.304% (-0.4%) from 83.676%
33605646597

Pull #629

github

joda9
fix(io): drop the dead bus-to-building-ID map in the PV rooftop import

Cherry-picked from 8105c72a on dev
(branch fix/ego-213-pv-rooftop-building-id-duplicate-bus), without the
changelog entry — this branch has no 0.3.1 section to put it in.

Importing generators failed for some grids with

    ValueError: cannot reindex on an axis with duplicate labels

raised from `gens_df.update()` in `_integrate_pv_rooftop`
(openego/eGo#213, reported for MV grids 33084 and 33695).

The function derived a bus -> building ID map from the conventional loads.
That map was deduplicated on "building_id" but indexed by "bus", so a bus
carrying the loads of two different buildings kept both rows and produced a
duplicated bus label. `gens_df.loc[:, ["bus"]].join(..., on="bus")` then
emitted two rows per generator, and `DataFrame.update` reindexes its argument
onto `self.index`, which rejects a non-unique index.

The map is not repaired here, it is removed, because it has had no effect on
the result for two and a half years. It was introduced in ae002033 to supply
the key for matching existing PV rooftop plants against the scenario data,
which merged `on="building_id"` at the time; the generators in a ding0
topology carry no building ID, so one was guessed from the conventional load
sitting at the same bus. A ToDo above the block already asked for the match
to use the unique MaStR source ID instead. d33e8515 did exactly that and
removed the ToDo, but left the map behind.

Since then the guessed value has been discarded: `gens_existing` is merged
with `pv_rooftop_df` on "source_id" with `suffixes=("_old", "")`, so the
building ID written back to `generators_df` comes from the scenario data and
the guessed one survives only as the unread column `building_id_old`. Every
PV rooftop generator is either decommissioned and removed, or matched and
updated from the scenario, so there is no path on which the guess is read.
Setting the building ID of all 2472 conventional loads in th... (continued)
Pull Request #629: Edisgo run edisgo

865 of 1143 new or added lines in 30 files covered. (75.68%)

465 existing lines in 13 files now uncovered.

9560 of 11476 relevant lines covered (83.3%)

0.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
49
60.8
2.56% edisgo/run/tasks/timeseries.py
29
43.14
-12.13% edisgo/run/tasks/flex.py
25
59.02
-4.48% edisgo/run/tasks/analysis.py
21
82.05
-6.68% edisgo/run/config.py
21
46.15
-33.85% edisgo/run/context.py
20
76.19
3.46% edisgo/run/tasks/io.py
17
73.44
-26.56% edisgo/run/runner.py
16
68.0
21.49% edisgo/run/tasks/grid.py
15
45.54
-33.41% edisgo/io/db.py
13
35.0
0.0% edisgo/run/tasks/spatial.py
12
93.32
0.0% edisgo/tools/spatial_complexity_reduction.py
11
86.27
0.75% edisgo/tools/tools.py
8
86.07
0.0% edisgo/tools/temporal_complexity_reduction.py
6
92.49
0.32% edisgo/io/powermodels_io.py
5
90.38
0.38% edisgo/run/validator.py
4
94.93
0.0% edisgo/opf/powermodels_opf.py
4
80.17
0.34% edisgo/tools/config.py
1
78.63
0.22% edisgo/edisgo.py
1
92.91
5.08% edisgo/flex_opt/charging_strategies.py

Coverage Regressions

Lines Coverage ∆ File
131
78.63
0.22% edisgo/edisgo.py
112
72.51
-0.3% edisgo/tools/plots.py
45
45.54
-33.41% edisgo/io/db.py
38
86.27
0.75% edisgo/tools/tools.py
35
80.17
0.34% edisgo/tools/config.py
28
55.43
0.0% edisgo/opf/results/opf_result_class.py
23
92.49
0.32% edisgo/io/powermodels_io.py
18
93.39
0.36% edisgo/network/electromobility.py
14
93.32
0.0% edisgo/tools/spatial_complexity_reduction.py
12
86.07
0.0% edisgo/tools/temporal_complexity_reduction.py
5
95.65
0.0% edisgo/network/overlying_grid.py
3
94.93
0.0% edisgo/opf/powermodels_opf.py
1
94.23
0.0% edisgo/io/heat_pump_import.py
Jobs
ID Job ID Ran Files Coverage
1 33605646597.1 02 Sep 2026 09:23AM UTC 68
83.3
GitHub Action Run
Source Files on build 33605646597
  • Tree
  • List 68
  • Changed 26
  • Source Changed 0
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #629
  • PR Base - dev (#31697978258)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc