Skip to content

Keep statistic output independent of tripinfo filtering - #19975

Open
M-Colley wants to merge 3 commits into
eclipse-sumo:mainfrom
M-Colley:codex/sumo-7838-unfiltered-statistic-output
Open

M-Colley wants to merge 3 commits into
eclipse-sumo:mainfrom
M-Colley:codex/sumo-7838-unfiltered-statistic-output

Conversation

@M-Colley

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

Copy link
Copy Markdown
Contributor

Fixes #7838.

Summary

  • Attach a tripinfo device for each vehicle when statistic output is enabled. Apply tripinfo selection only when writing individual vehicle records.
  • Emit the trip, pedestrian, ride and transport aggregates when statistic output is requested on its own.

Evidence

  • The issue attachment reports 169 vehicle trips and one pedestrian without a filter. The current release reports zero vehicle trips after applying the explicit ID filter. The patch preserves the unfiltered aggregate values with the filter enabled and with statistic output alone.
  • All eight statistic fixtures and 31 adjacent tripinfo, personinfo and duration-log fixtures pass. Five other tool and route-roundtrip cases using statistic output also pass. Strict MkDocs passes.
  • The new fixture aggregates three vehicles and writes the selected record. Direct mesoscopic replay verifies the same behavior for completed and unfinished vehicles.

Merge Danger

Requesting statistic output now allocates a tripinfo device for vehicles that previously went uncounted. Individual vehicle record selection and the default completed-trip rule are preserved.

M-Colley and others added 3 commits December 5, 2026 02:52
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com>
@behrisch
behrisch force-pushed the codex/sumo-7838-unfiltered-statistic-output branch from b90cbd3 to aeed37c Compare December 5, 2026 01:52
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.

--statistic-output ignores vehicles without device.tripinfo

1 participant