Skip to content

Cnh/front/fix power restriction warning count#16723

Open
kmer2016 wants to merge 1 commit into
devfrom
cnh/front/fix-power-restriction-warning-count
Open

Cnh/front/fix power restriction warning count#16723
kmer2016 wants to merge 1 commit into
devfrom
cnh/front/fix-power-restriction-warning-count

Conversation

@kmer2016
Copy link
Copy Markdown
Contributor

@kmer2016 kmer2016 commented May 13, 2026

Closes #16408

@github-actions github-actions Bot added the area:front Work on Standard OSRD Interface modules label May 13, 2026
The banner counts incompatibility blocks: contiguous runs of waypoints
where the active restriction is incompatible with the electrification.

When two different restrictions were incompatible back-to-back along
the path (e.g. restriction A from A to B and restriction B from B to
C), they were merged into a single block and counted as one warning.

A block now also ends when the active restriction changes while still
in a warning state, so each restriction's incompatibility is counted
on its own.

Signed-off-by: nncluzu <ngamenichaka@yahoo.fr>
@kmer2016 kmer2016 force-pushed the cnh/front/fix-power-restriction-warning-count branch from 0f7311f to c5d2ae2 Compare May 13, 2026 10:02
@kmer2016 kmer2016 requested review from emersion and theocrsb May 13, 2026 10:09
@kmer2016 kmer2016 marked this pull request as ready for review May 13, 2026 10:09
@kmer2016 kmer2016 requested a review from a team as a code owner May 13, 2026 10:09
@emersion
Copy link
Copy Markdown
Member

Can the PR title be updated? Right now it's been auto-generated from the branch name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:front Work on Standard OSRD Interface modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Operational Studies: when several incompatible power restrictions are selected in the new table, the warning is not updated correctly.

2 participants