This repository contains the code developed for the paper:
Alisjahbana, I., Moura-Cook, A., Costa, R., Kiremidjian, A., In Review, An Agent-based Financing Model for Post-Earthquake Housing Recovery: Quantifying Recovery Inequalities Across Income Groups",
Please cite the paper if you use any data or analyses from this study. Pre-print version of the paper is available here.
- Change parameters in
configs/basecase.py- A sample input file is available in
data/building_damage_owner.csv
- A sample input file is available in
- Open
sanjose_model.pyand change line 12 according to the name from step 1. Example: if the name is:basecase.py, then line 12 becomes:from configs.basecase import * - Create a
resultsfolder - Run the code:
python sanjose_model.py - Results will be saved as
.csvaccording to the name defined inconfigs/basecase.pyin theresultsfolder
visualization_utils.py: Functions for visualizing resultsVisualize Results.ipynb: Jupyter Notebook for visualizing
