Skip to content

Conversation

@apierr
Copy link
Member

@apierr apierr commented Nov 26, 2025

✨ PR Description

This pull request introduces automated generation of Figure 1, Figure 2, and Table III directly from CSV datasets.

πŸ”§ Features Included

  • πŸ“₯ Load and parse CSV input files
  • 🌑️ Generate heatmaps for Adoption Rate vs. Trust & Income (Figure 1)
  • πŸ“‰ Produce PRIM peeling trajectory plots across NI/SI/EI scenarios (Figure 2)
  • πŸ“‹ Build Table III summarizing PRIM subgroup statistics (Coverage, Density, Lift)
  • πŸ§ͺ Add reproducibility functions to regenerate results from raw simulation data
  • πŸ“ Optional: Add CLI or config system for batch generation
  • 🧼 Optional: Refactor and expand documentation

πŸ“š Context

The script processes simulation results (10,000 agents Γ— 100 runs) and reproduces analytical outputs across the NI, SI, and EI scenarios.
Generated outputs include:

  • Heatmaps of Adoption Rate over Trust–Income space
  • PRIM Peeling Trajectory visualizations
  • PRIM subgroup analysis table (Coverage, Density, Lift)

These tools allow fully reproducible generation of all figures and tables from raw CSV inputs for the manuscript.

- Save generated figure to /tmp
- Print full output path to console
- Fix print() call bug
- Generate Markdown table from demographic_profiles.csv
- Save output to /tmp/ directory
- Print file path after creation
- Add tabulate dependency to requirements.txt for pandas.to_markdown()
- Add emojis to improve readability
- Remove references to dummy data
- Note future support for MESA-produced data
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