Python scripts and data necessary to reproduce the results of the article "Patterns of residential segregation" by R. Louf and M. Barthelemy.
If you find this code useful in your research, please let me know! If you use a significant part of this code in a publication, please cite
[citation here]
Important note: If you want to apply the methodology used in the paper rather than simply reproduce the results, check out Marble, a python library to analyse residential segregation.
You will need GNU Make, curl, git and Python 2.7 installed on your machine (this should be the case if your machine runs linux. Otherwise Google is your best friend). This was tested on Arch Linux and Python 2.7.9. Feel free to start an issue if you cannot run the code.
In command line, type
git clone https://github.com/rlouf/socio-spatial-stratification your_folder_name
This should download all the files and data necessary to your_folder_name.
To install the python libraries necessary to run the code, go to the cloned folder and type in command line
pip install -r requirements.txt
Go into the corresponding folder and type
make
The programme will prepare the data, perform the analysis and plot the figures in the folder 'figures'.
The code is distributed with a BSD license, see LICENSE.txt for more details.
Copyright (c) Scities
Rémi Louf <remi.louf@sciti.es>