Skip to content

Generate distinct IDs for closely spaced edge splits - #19995

Open
M-Colley wants to merge 3 commits into
eclipse-sumo:mainfrom
M-Colley:codex/sumo-5980-unique-close-split-ids
Open

M-Colley wants to merge 3 commits into
eclipse-sumo:mainfrom
M-Colley:codex/sumo-5980-unique-close-split-ids

Conversation

@M-Colley

@M-Colley M-Colley commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Disambiguate generated IDs when split positions on the same edge truncate to the same integer.
  • Normalize positions measured from the end before checking for duplicate positions.

Fixes #5980.

Evidence

  • Stock netconvert fails the positive and negative close-split fixtures. Both pass with the patch, and native SUMO drives across the new connections after re-import.
  • Passed 116 of 118 split, connection, and railway checks. The two failures produced byte-identical stock output.
  • The explicit duplicate-ID error remains covered. Strict MkDocs passed.

Merge Danger

Colliding generated IDs use a numeric suffix. Existing unambiguous generated IDs and explicit IDs keep their spelling.

M-Colley and others added 3 commits December 5, 2026 03:31
…se-sumo#5980

Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
@behrisch
behrisch force-pushed the codex/sumo-5980-unique-close-split-ids branch from 7233ace to 551b9f8 Compare December 5, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Netconvert looses an edge

1 participant