Skip to content

chore: update plotting scales according to actual KPI scales#39

Merged
stedrew merged 8 commits intodenoslab:mainfrom
legend5teve:feat/visualization-module-plots
Mar 11, 2026
Merged

chore: update plotting scales according to actual KPI scales#39
stedrew merged 8 commits intodenoslab:mainfrom
legend5teve:feat/visualization-module-plots

Conversation

@legend5teve
Copy link
Collaborator

Summary

  • add a round-based agent timeline plot that shows departure-to-arrival spans with route-change overlays
  • wire the new timeline plot into the aggregate plotting wrapper
  • document the new timeline command in the README

Validation

  • python3 -m py_compile scripts/plot_agent_round_timeline.py scripts/plot_all_run_artifacts.py
  • python3 scripts/plot_agent_round_timeline.py --help
  • python3 scripts/plot_all_run_artifacts.py --help

legend5teve and others added 7 commits March 5, 2026 16:05
 Changes to be committed:
	modified:   agentevac/simulation/main.py
	modified:   agentevac/simulation/spawn_events.py
	modified:   agentevac/utils/replay.py
	modified:   sumo/Repaired.netecfg
	modified:   sumo/Repaired.sumocfg
  Module updated: agentevac/utils/replay.py

  - Fixed RouteReplay._load_schedule(...) so it only reads step and veh_id for replayable events:
      - route_change
      - departure_release
  - Non-replayable events like agent_cognition and metrics_snapshot are now ignored without touching veh_id.

  Cause

  - The loader was accessing rec["veh_id"] before checking the event type.
  - metrics_snapshot records do not have veh_id, so replay loading crashed with KeyError.

  Verification

  1. python3 -m py_compile agentevac/utils/replay.py passed.
  2. Reproduced the failing case with a small local script:

  - one route_change
  - one agent_cognition
  - one metrics_snapshot
  - replay load now succeeds and only indexes the route-change step.
@stedrew
Copy link
Contributor

stedrew commented Mar 11, 2026

@legend5teve Can you also add test cases to cover newly added features?

@stedrew
Copy link
Contributor

stedrew commented Mar 11, 2026

Also please add doc strings for documentation.

@legend5teve legend5teve changed the title feat: implement timeline analysis for evacuation in scripts/plot_agent_round_timeline.py chore: add test cases to cover newly added features; update doc strings for documentation Mar 11, 2026
@stedrew stedrew merged commit b64ef56 into denoslab:main Mar 11, 2026
1 check passed
@legend5teve legend5teve changed the title chore: add test cases to cover newly added features; update doc strings for documentation chore: update plotting scales according to actual KPI scales Mar 11, 2026
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.

2 participants