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

openego / eDisGo / 36104705703
84%

Build:
DEFAULT BRANCH: dev
Ran 25 Sep 2026 08:06AM 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

25 Sep 2026 06:50AM UTC coverage: 83.997% (+0.01%) from 83.987%
36104705703

push

github

web-flow
Weight line impedance by num_parallel when reducing the grid (#768)

* fix(tools): weight line impedance by num_parallel when reducing

A line that stands for several parallel systems came out of
spatial_complexity_reduction with num_parallel times its impedance.

aggregate_lines_df rebuilds r and x from the per-km values of the line type,
combining the grouped lines in parallel. Those values describe ONE system, and
num_parallel was never part of the calculation -- while num_parallel and s_nom
were carried over intact, so nothing in the reduced grid showed that its
impedance no longer matched its own metadata.

Few lines carry parallel systems, but they sit where a feeder leaves the
station and are therefore on the path of everything behind them. On MV grid
32064 an eight-system feeder came out at 0.164 Ohm/km instead of 0.0205 -- the
catalogue value of NA2XS2Y 3x1x185, i.e. exactly eight times too resistive.
Measured over that grid: all 34 one-to-one mapped lines with num_parallel > 1
had their resistance per km multiplied by exactly num_parallel, the
load-weighted path resistance from the station to the loads doubled from 0.458
to 0.940, 81.5 % of loads ended up electrically further away, and the voltage
band went from 0.908-1.033 to 0.818-1.136. reinforce() then aborted with

    MaximumIterationError: Over-voltage issues for the following nodes in MV
    topology could not be solved

on a grid that needs no reinforcement at all before the reduction. (The
message says over-voltage; the buses it names sit at 0.926 pu.)

Each line now counts as num_parallel systems of its type, so the per-km
admittance is num_parallel / value_per_km. With that, the 35 affected lines of
2421 keep their resistance per km exactly, the voltage band comes back to
0.895-1.040 and the expansion runs through with 25 measures.

The test reduces the same grid twice, once with every line as a single system
and once with n, and asserts the impedances differ by exactly n. num_pa... (continued)

5 of 5 new or added lines in 1 file covered. (100.0%)

9558 of 11379 relevant lines covered (84.0%)

0.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36104705703.1 25 Sep 2026 08:06AM UTC 68
84.0
GitHub Action Run
Source Files on build 36104705703
  • Tree
  • List 68
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1a5d67d7 on github
  • Prev Build on dev (#35856695870)
  • Next Build on dev (#36118471475)
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