Skip to content

📊 Adapt visualization scripts for ABM data #16

Open

Description

@apierr

🐞 Problem Description

The current visualization scripts (e.g., adoption_heatmap_generator) are designed to work with Montecarlo simulation data (data/montecarlo). They are not compatible with ABM simulation data (data/abm), due to differences in CSV format and structure.

Example ABM CSV snippet:


scenario,step,agent_id,type,trust,income,adoption,grid_id
high_trust_policy,1,0,ConsumerAgent,0.9123,,0.0,30
high_trust_policy,1,1,ConsumerAgent,1.0,,0.0,31

⚠️ Issues expected:

  • Column names and structure differ from Montecarlo CSVs.
  • Scripts may fail when parsing ABM data.
  • Aggregation and plotting logic may need adjustments.

🎯 Goal

Make the visualization scripts compatible with ABM data, so that we can generate:

  • 🖼️ PNG plots (e.g., adoption heatmaps)
  • 📄 LaTeX tables summarizing metrics per scenario/step

🛠️ Tasks

  1. 🧩 Implement an ABM CSV adapter to convert ABM CSVs to a format compatible with existing visualization scripts.
  2. ⚙️ Update script CLI to accept --data-dir pointing to ABM data directories.
  3. 📊 Modify aggregation logic if needed (per scenario/step/agent).
  4. 🎨 Ensure output plots and tables are consistent with Montecarlo reports.
  5. 🧪 Test scripts on sample ABM runs (data/abm_experiments/run_seed_5678).

✅ Acceptance Criteria

  • ✅ Visualization scripts run successfully on ABM data.
  • ✅ Generated PNGs and LaTeX tables match the intended metrics.
  • ✅ No breaking changes for Montecarlo data processing.

Activity

  1. added
    Status: To DoThis issue is ready to be picked up by a team member.
    Priority: HighCritical tasks that need immediate attention
    Priority: LowCan be scheduled or postponed
    and removed
    Priority: HighCritical tasks that need immediate attention
    Priority: LowCan be scheduled or postponed
    Status: To DoThis issue is ready to be picked up by a team member.
    on Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions