-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from sjsrey/gini-polarization
Polarization indices and new documentation
- Loading branch information
Showing
33 changed files
with
3,997 additions
and
1,850 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Contributing to inequality | ||
|
||
Contributions to inequality are much appreciated. | ||
|
||
## Steps to Contribute | ||
|
||
1. Fork the inequality git repository | ||
2. Create a development environment | ||
3. Activate the new environment | ||
4. Install project dependencies | ||
5. Verify installation and run tests | ||
6. Build documentation | ||
7. Submitting a Pull Request | ||
|
||
## 1. Fork the inequality git repository | ||
|
||
- On github, fork the repository at: <https://github.com/pysal/inequality> | ||
- From your new fork, grab the clone url: | ||
``` | ||
git clone [email protected]:your-user-name/inequality.git inequality-yourname | ||
cd inequality-yourname | ||
git remote add upstream git://github.com/pysal/inequality.git | ||
``` | ||
|
||
## 2. Create a development environment | ||
|
||
- Install either [Anaconda](http://docs.continuum.io/anaconda/) or [miniconda](http://conda.pydata.org/miniconda.html) | ||
- `cd` into the `inequality-yourname` source directory that you cloned in step 1 | ||
|
||
``` | ||
conda create --name inequality python=3.10 | ||
``` | ||
|
||
## 3. Activate the new environment | ||
``` | ||
conda activate inequality | ||
``` | ||
## 4. Install project dependencies | ||
``` | ||
pip install .[dev,docs,tests] | ||
``` | ||
|
||
Note, if you are on zsh use: | ||
|
||
``` | ||
pip install '.[dev,docs,tests]' | ||
``` | ||
If this fails on MacOS you have to have `proj` installed: | ||
``` | ||
brew install proj | ||
``` | ||
|
||
Set this variable in your shell configuration (e.g., ~/.zshrc or ~/.bashrc): | ||
``` | ||
export PROJ_DIR="/opt/homebrew/opt/proj" | ||
``` | ||
Then, reload your shell configuration: | ||
``` | ||
source ~/.zshrc | ||
``` | ||
and check that `proj` is correctly installed: | ||
``` | ||
proj | ||
``` | ||
|
||
## 5. Verify installation and run tests | ||
``` | ||
python -c "import libpysal; print('libpysal version:', libpysal.__version__)" | ||
pytest inequality | ||
``` | ||
|
||
|
||
## 6. Build documentation | ||
``` | ||
cd docs | ||
make html | ||
``` | ||
|
||
## 7. Submitting a Pull Request | ||
|
||
If you have made changes that you have pushed to your forked repository, you can | ||
submit a pull request to have them integrated into the `inequality` code base. | ||
|
||
See the [GitHUB tutorial](https://help.github.com/articles/using-pull-requests/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
;; -*- lexical-binding: t; -*- | ||
|
||
(TeX-add-style-hook | ||
"references" | ||
(lambda () | ||
(LaTeX-add-bibitems | ||
"hoffmann2024MeasuringMismeasuring" | ||
"wolfson1994WhenInequalities" | ||
"schutz1951MeasurementIncome" | ||
"Atkinson_1970_Measurement" | ||
"care_2012" | ||
"ellison_1997" | ||
"maurel_1999" | ||
"nijkamp2015cultural" | ||
"rey_interregional_2010" | ||
"rey_comparative_2015" | ||
"Rey_2013_sea")) | ||
:bibtex) | ||
"Rey_2013_sea" | ||
"van_Mourik_1989")) | ||
'(or :bibtex :latex)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
========== | ||
User Guide | ||
========== | ||
|
||
This user guide covers essential features of pysal-inequality, mostly in the form of interactive Jupyter notebooks. Reading this guide, you will learn: | ||
|
||
- how to :ref:`visualize <viz>` spatial inequality | ||
- how to :ref:`measure <measure>` spatial inequality | ||
|
||
Notebooks cover just a small selection of functions as an illustration of | ||
principles. For a full overview of pysal-inequality capabilities, head to the `API <../api.rst>`_. | ||
|
Oops, something went wrong.