Skip to content

Commit 826e3c3

Browse files
authored
Merge pull request #288 from jGaboardi/rerun_notebooks
Update/cleanup/standardize notebooks
2 parents 336f235 + 5ca1946 commit 826e3c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+40397
-42496
lines changed

.ci/310-DEV_shapely20b1.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: test
2+
channels:
3+
- conda-forge
4+
- conda-forge/label/shapely_dev
5+
dependencies:
6+
- python=3.10
7+
- geopandas>=0.12.0
8+
- matplotlib
9+
- networkx
10+
- numpy>=1.3
11+
- pandas>=1
12+
- pip
13+
- scikit-learn>=0.22
14+
- scipy>=1.0
15+
- shapely==2.0b1
16+
- spenc
17+
- spaghetti
18+
# testing
19+
- codecov
20+
- coverage
21+
- pytest
22+
- pytest-cov
23+
- pytest-xdist

.github/workflows/unittests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
strategy:
1919
matrix:
2020
os: [ubuntu-latest]
21-
environment-file: [.ci/37.yaml, .ci/38.yaml, .ci/39.yaml, .ci/310.yaml, .ci/310-DEV.yaml]
21+
environment-file: [.ci/37.yaml, .ci/38.yaml, .ci/39.yaml, .ci/310.yaml, .ci/310-DEV.yaml, .ci/310-DEV_shapely20b1.yaml]
2222
include:
2323
- environment-file: .ci/310.yaml
2424
os: macos-latest
2525
- environment-file: .ci/310.yaml
2626
os: windows-latest
27+
fail-fast: false
2728

2829
steps:
2930
- name: checkout repo
@@ -34,6 +35,8 @@
3435
with:
3536
environment-file: ${{ matrix.environment-file }}
3637
micromamba-version: 'latest'
38+
channel-priority: 'flexible'
39+
3740
- name: install pulp via pip
3841
shell: bash -l {0}
3942
run: pip install pulp

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
repos:
2-
- repo: https://github.com/ambv/black
3-
rev: 21.12b0
4-
hooks:
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 22.6.0
4+
hooks:
55
- id: black
6-
language_version: python3.9
6+
language_version: python3

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@ You may also install the latest stable spopt via conda-forge channel by running:
113113
$ conda install --channel conda-forge spopt
114114
```
115115

116+
## Related packages
117+
118+
* Region
119+
* Locate
120+
* [`allagash`](https://github.com/apulverizer/allagash)
121+
* [`maximum-coverage-location`](https://github.com/cyang-kth/maximum-coverage-location)
122+
* [`p-center`](https://github.com/antoniomedrano/p-center)
123+
* [`pyspatialopt`](https://github.com/apulverizer/pyspatialopt)
124+
116125
## Contribute
117126

118127
PySAL-spopt is under active development and contributors are welcome.

docs/_static/references.bib

Lines changed: 119 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,63 @@
22
%% Saved with string encoding Unicode (UTF-8)
33
44
5-
@article{wei2020efficient,
6-
title={Efficient Regionalization for Spatially Explicit Neighborhood Delineation},
7-
author={Wei, R and Rey, SJ and Knaap, E},
8-
journal={International Journal of Geographical Information Science},
9-
pages={1--17},
10-
year={2020},
11-
publisher={Taylor \& Francis},
12-
doi={10.1080/13658816.2020.1759806},
5+
@article{assunccao2006efficient,
6+
title={Efficient Regionalization Techniques for Socio-economic Geographical Units Using Minimum Spanning Trees},
7+
author={Assunção, RM and Neves, MC and Câmara, G and da Costa Freitas, C},
8+
journal={IJGIS},
9+
volume={20},
10+
number={7},
11+
pages={797--811},
12+
year={2006},
13+
doi={10.1080/13658810600665111},
14+
publisher={Taylor \& Francis}
15+
}
16+
17+
18+
@article{calik_labbé_yaman_2015,
19+
author={Calik, Hatice and Labbé, Martine and Yaman, Hande},
20+
title={p-Center Problems},
21+
journal={Location Science},
22+
pages={79–92},
23+
year={2015},
24+
doi={10.1007/978-3-319-13111-5_4},
25+
}
26+
27+
28+
@article{chen_murray_jiang_2021,
29+
author={Chen, Huanfa and Murray, Alan T. and Jiang, Rui},
30+
title={Open-source approaches for location cover models: capabilities and efficiency},
31+
journal={Journal of Geographical Systems},
32+
doi={10.1007/s10109-021-00350-w},
33+
year={2021}
34+
}
35+
36+
37+
@book{church_murray_2018,
38+
author={Church, Richard L. and Murray, Alan T.},
39+
title={Location covering models: history, applications and advancements},
40+
publisher={Springer},
41+
year={2018},
42+
}
43+
44+
45+
@article{daskin_stern_edmund_1981,
46+
author = {Daskin, Mark S. and Stern, Edmund H.},
47+
title = {A Hierarchical Objective Set Covering Model for Emergency Medical Service Vehicle Deployment},
48+
journal = {Transportation Science},
49+
doi = {10.1287/trsc.15.2.137},
50+
year = {1981}
51+
}
52+
53+
54+
@book{daskin_2013,
55+
author={Daskin, Mark S.},
56+
title={Network and discrete location: models, algorithms, and applications},
57+
publisher={John Wiley & Sons, Inc.},
58+
year={2013},
1359
}
1460

61+
1562
@article{duque2011p,
1663
title={The p-Regions Problem},
1764
author={Duque, JC and Church, RL and Middleton, RS},
@@ -24,27 +71,6 @@ @article{duque2011p
2471
doi={10.1111/j.1538-4632.2010.00810.x},
2572
}
2673

27-
@article{assunccao2006efficient,
28-
title={Efficient Regionalization Techniques for Socio-economic Geographical Units Using Minimum Spanning Trees},
29-
author={Assunção, RM and Neves, MC and Câmara, G and da Costa Freitas, C},
30-
journal={IJGIS},
31-
volume={20},
32-
number={7},
33-
pages={797--811},
34-
year={2006},
35-
doi={10.1080/13658810600665111},
36-
publisher={Taylor \& Francis}
37-
}
38-
39-
@article{openshaw1977geographical,
40-
title={A Geographical Solution to Scale and Aggregation Problems in Region-building, Partitioning and Spatial Modelling},
41-
author={Openshaw, S},
42-
journal={Transactions of the Institute of British Geographers},
43-
pages={459--472},
44-
year={1977},
45-
publisher={JSTOR},
46-
doi={doi.org/10.2307/622300},
47-
}
4874

4975
@article{duque2012max,
5076
author={Duque, JC and Anselin, L and Rey, SJ},
@@ -57,35 +83,6 @@ @article{duque2012max
5783
year={2012}
5884
}
5985

60-
@article{openshaw1995algorithms,
61-
title={Algorithms for Reengineering 1991 Census Geography},
62-
author={Openshaw, S and Rao, L},
63-
journal={Environment and Planning A},
64-
volume={27},
65-
number={3},
66-
pages={425--446},
67-
year={1995},
68-
doi={10.1068/a270425},
69-
publisher={SAGE Publications Sage UK: London, England}
70-
}
71-
72-
@misc{wolf2018,
73-
title={{ljwolf/spenc: GISRUK}},
74-
author={Wolf, LJ},
75-
year={2018},
76-
doi={10.5281/zenodo.1219904},
77-
}
78-
79-
@article{wolf2021,
80-
author={Wolf, LJ},
81-
title={Spatially–encouraged spectral clustering: a technique for blending map typologies and regionalization},
82-
journal={International Journal of Geographical Information Science},
83-
volume={0},
84-
number={0},
85-
pages={1-18},
86-
year={2021},
87-
doi={10.1080/13658816.2021.1934475},
88-
}
8986

9087
@article{hakimi_1964,
9188
author={Hakimi, S. L.},
@@ -109,6 +106,49 @@ @article{hakimi_1965
109106
doi={10.1287/opre.13.3.462},
110107
}
111108

109+
110+
@article{kuby_1987,
111+
author = {Kuby, Michael J.},
112+
title = {Programming Models for Facility Dispersion: The p-Dispersion and Maxisum Dispersion Problems},
113+
journal = {Geographical Analysis},
114+
doi = {10.1111/j.1538-4632.1987.tb00133.x},
115+
year = {1987}
116+
}
117+
118+
119+
@article{MALISZEWSKI2012331,
120+
author = {Paul J. Maliszewski and Michael J. Kuby and Mark W. Horner},
121+
title = {A comparison of multi-objective spatial dispersion models for managing critical assets in urban areas},
122+
journal = {Computers, Environment and Urban Systems},
123+
doi = {10.1016/j.compenvurbsys.2011.12.006},
124+
year = {2012}
125+
}
126+
127+
128+
@article{openshaw1977geographical,
129+
title={A Geographical Solution to Scale and Aggregation Problems in Region-building, Partitioning and Spatial Modelling},
130+
author={Openshaw, S},
131+
journal={Transactions of the Institute of British Geographers},
132+
pages={459--472},
133+
year={1977},
134+
publisher={JSTOR},
135+
doi={doi.org/10.2307/622300},
136+
}
137+
138+
139+
@article{openshaw1995algorithms,
140+
title={Algorithms for Reengineering 1991 Census Geography},
141+
author={Openshaw, S and Rao, L},
142+
journal={Environment and Planning A},
143+
volume={27},
144+
number={3},
145+
pages={425--446},
146+
year={1995},
147+
doi={10.1068/a270425},
148+
publisher={SAGE Publications Sage UK: London, England}
149+
}
150+
151+
112152
@article{toregas_swain_revelle_bergman_1971,
113153
author={Toregas, Constantine and Swain, Ralph and Revelle, Charles and Bergman, Lawrence},
114154
title={The Location of Emergency Service Facilities},
@@ -120,59 +160,36 @@ @article{toregas_swain_revelle_bergman_1971
120160
doi={10.1287/opre.19.6.1363},
121161
}
122162

123-
@article{calik_labbé_yaman_2015,
124-
author={Calik, Hatice and Labbé, Martine and Yaman, Hande},
125-
title={p-Center Problems},
126-
journal={Location Science},
127-
pages={79–92},
128-
year={2015},
129-
doi={10.1007/978-3-319-13111-5_4},
130-
}
131163

132-
@article{chen_murray_jiang_2021,
133-
author={Chen, Huanfa and Murray, Alan T. and Jiang, Rui},
134-
title={Open-source approaches for location cover models: capabilities and efficiency},
135-
journal={Journal of Geographical Systems},
136-
doi={10.1007/s10109-021-00350-w},
137-
year={2021}
164+
@article{wei2020efficient,
165+
title={Efficient Regionalization for Spatially Explicit Neighborhood Delineation},
166+
author={Wei, R and Rey, SJ and Knaap, E},
167+
journal={International Journal of Geographical Information Science},
168+
pages={1--17},
169+
year={2020},
170+
publisher={Taylor \& Francis},
171+
doi={10.1080/13658816.2020.1759806},
138172
}
139173

140-
@book{daskin_2013,
141-
author={Daskin, Mark S.},
142-
title={Network and discrete location: models, algorithms, and applications},
143-
publisher={John Wiley & Sons, Inc.},
144-
year={2013},
145-
}
146174

147-
@book{church_murray_2018,
148-
author={Church, Richard L. and Murray, Alan T.},
149-
title={Location covering models: history, applications and advancements},
150-
publisher={Springer},
175+
@misc{wolf2018,
176+
title={{ljwolf/spenc: GISRUK}},
177+
author={Wolf, LJ},
151178
year={2018},
179+
doi={10.5281/zenodo.1219904},
152180
}
153181

154-
@article{MALISZEWSKI2012331,
155-
author = {Paul J. Maliszewski and Michael J. Kuby and Mark W. Horner},
156-
title = {A comparison of multi-objective spatial dispersion models for managing critical assets in urban areas},
157-
journal = {Computers, Environment and Urban Systems},
158-
doi = {10.1016/j.compenvurbsys.2011.12.006},
159-
year = {2012}
160-
}
161182

162-
@article{kuby_1987,
163-
author = {Kuby, Michael J.},
164-
title = {Programming Models for Facility Dispersion: The p-Dispersion and Maxisum Dispersion Problems},
165-
journal = {Geographical Analysis},
166-
doi = {10.1111/j.1538-4632.1987.tb00133.x},
167-
year = {1987}
183+
@article{wolf2021,
184+
author={Wolf, LJ},
185+
title={Spatially–encouraged spectral clustering: a technique for blending map typologies and regionalization},
186+
journal={International Journal of Geographical Information Science},
187+
volume={0},
188+
number={0},
189+
pages={1-18},
190+
year={2021},
191+
doi={10.1080/13658816.2021.1934475},
168192
}
169193

170-
@article{daskin_stern_edmund_1981,
171-
author = {Daskin, Mark S. and Stern, Edmund H.},
172-
title = {A Hierarchical Objective Set Covering Model for Emergency Medical Service Vehicle Deployment},
173-
journal = {Transportation Science},
174-
doi = {10.1287/trsc.15.2.137},
175-
year = {1981}
176-
}
177194

178195
%======

docs/api.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ API reference
88
.. _data_api:
99

1010
Region Methods
11-
-----------------------
11+
--------------
1212
Model based approaches for aggregating a large set of geographic units (with small footprints) into a smaller number of regions (with large footprints).
1313

1414

@@ -27,6 +27,8 @@ Model based approaches for aggregating a large set of geographic units (with sma
2727
Locate Methods
2828
--------------
2929

30+
Exact solution approaches to facility location modeling problems.
31+
3032
.. autosummary::
3133
:toctree: generated/
3234

0 commit comments

Comments
 (0)