Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

[WIP] COG 2018 #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 11.0.0 — Not published yet

* Use COG 2018 (previously 2017) from INSEE as source.

## 10.0.2 - 2017-12-01

* Handle special case of Mauvezin-sur-Gupie, fix #59
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you’re only interested in generated data, check out the `exports` folder wh

## Sources

Source files are coming from the [INSEE downloads page](https://www.insee.fr/fr/information/2666684) which allows to retrieve information related to the “Code officiel géographique 2017”. We’re using the list of existing towns and their history which are both available within the `sources` folder.
Source files are coming from the [INSEE downloads page](https://www.insee.fr/fr/information/3363419) which allows to retrieve information related to the “Code officiel géographique 2018”. We’re using the list of existing towns and their history which are both available within the `sources` folder.

Additionaly, files containing the population for almost all towns has been computed too in the `sources` folder. They are coming from [a XLS dataset](http://www.insee.fr/fr/ppp/bases-de-donnees/recensement/populations-legales/pages2015/zip/HIST_POP_COM_RP13.zip) provided by [INSEE](http://www.insee.fr/fr/ppp/bases-de-donnees/recensement/populations-legales/), manually completed with Wikipedia data for [Lyon](https://fr.wikipedia.org/wiki/Arrondissements_de_Lyon) and [Marseille](https://fr.wikipedia.org/wiki/Secteurs_et_arrondissements_de_Marseille) districts, and converted into CSV.

Expand Down
4 changes: 2 additions & 2 deletions geohisto/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
log = logging.getLogger(__name__)


def load_towns(filename='sources/France2017.txt'):
def load_towns(filename='sources/France2018.txt'):
"""
Load all towns from `filename` into an OrderedDict of `Town`s namedtuples.

Expand Down Expand Up @@ -49,7 +49,7 @@ def load_towns(filename='sources/France2017.txt'):
return towns


def load_history(filename='sources/historiq2017.txt'):
def load_history(filename='sources/historiq2018.txt'):
"""Load all towns from `filename` into a list of `Record`s."""
log.info('Loading history')
history = []
Expand Down
Loading