Skip to content

Commit

Permalink
fix(ca): Disambiguate federal districts from provincial districts usi…
Browse files Browse the repository at this point in the history
…ng fed type
  • Loading branch information
jpmckinney committed May 15, 2024
1 parent ad6d7dc commit e4f0e0d
Show file tree
Hide file tree
Showing 6 changed files with 2,138 additions and 2,137 deletions.
1,292 changes: 646 additions & 646 deletions identifiers/country-ca/aliases.csv

Large diffs are not rendered by default.

1,952 changes: 976 additions & 976 deletions identifiers/country-ca/ca_federal_electoral_districts-abolished.csv

Large diffs are not rendered by default.

324 changes: 162 additions & 162 deletions identifiers/country-ca/ca_federal_electoral_districts-aliases.csv

Large diffs are not rendered by default.

676 changes: 338 additions & 338 deletions identifiers/country-ca/ca_federal_electoral_districts-current.csv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions scripts/country-ca/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ For specific files:

* `province`: province
* `territory`: territory
* `fed`: federal electoral district
* `ed`: electoral district
* `cd`: census division
* `csd`: census subdivision
Expand Down
30 changes: 15 additions & 15 deletions scripts/country-ca/ca_federal_electoral_districts.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@
"Terrebonne": "Terrebonne—Blainville",
}
alias_corrections = {
"Argenteuil": "ocd-division/country:ca/province:qc/ed:argenteuil-deux-montagnes",
"Beauharnois": "ocd-division/country:ca/province:qc/ed:beauharnois-salaberry",
"Charlesbourg": "ocd-division/country:ca/province:qc/ed:charlesbourg-haute-saint-charles",
"Chicoutimi": "ocd-division/country:ca/province:qc/ed:chicoutimi-le_fjord",
"Gloucester—Carleton": "ocd-division/country:ca/province:on/ed:orléans",
"Huron": "ocd-division/country:ca/province:on/ed:huron-bruce",
"Longueuil": "ocd-division/country:ca/province:qc/ed:longueuil-saint-hubert",
"Maisonneuve": "ocd-division/country:ca/province:qc/ed:maisonneuve-rosemont",
"Missisquoi": "ocd-division/country:ca/province:qc/ed:brome-missisquoi",
"North Okanagan—Shuswap": "ocd-division/country:ca/province:bc/ed:okanagan-shuswap",
"Richelieu": "ocd-division/country:ca/province:qc/ed:bas-richelieu-nicolet-bécancour",
"Rimouski": "ocd-division/country:ca/province:qc/ed:rimouski-mitis",
"Sarnia": "ocd-division/country:ca/province:on/ed:sarnia-lambton",
"Témiscouata": "ocd-division/country:ca/province:qc/ed:rivière-du-loup-témiscouata"
"Argenteuil": "ocd-division/country:ca/province:qc/fed:argenteuil-deux-montagnes",
"Beauharnois": "ocd-division/country:ca/province:qc/fed:beauharnois-salaberry",
"Charlesbourg": "ocd-division/country:ca/province:qc/fed:charlesbourg-haute-saint-charles",
"Chicoutimi": "ocd-division/country:ca/province:qc/fed:chicoutimi-le_fjord",
"Gloucester—Carleton": "ocd-division/country:ca/province:on/fed:orléans",
"Huron": "ocd-division/country:ca/province:on/fed:huron-bruce",
"Longueuil": "ocd-division/country:ca/province:qc/fed:longueuil-saint-hubert",
"Maisonneuve": "ocd-division/country:ca/province:qc/fed:maisonneuve-rosemont",
"Missisquoi": "ocd-division/country:ca/province:qc/fed:brome-missisquoi",
"North Okanagan—Shuswap": "ocd-division/country:ca/province:bc/fed:okanagan-shuswap",
"Richelieu": "ocd-division/country:ca/province:qc/fed:bas-richelieu-nicolet-bécancour",
"Rimouski": "ocd-division/country:ca/province:qc/fed:rimouski-mitis",
"Sarnia": "ocd-division/country:ca/province:on/fed:sarnia-lambton",
"Témiscouata": "ocd-division/country:ca/province:qc/fed:rivière-du-loup-témiscouata"
}

pd.set_option("display.max_columns", None)
Expand Down Expand Up @@ -157,7 +157,7 @@
"Yukon": "yt",
}
)
+ "/ed:"
+ "/fed:"
# - Assiniboia West
# - "Uppercase characters must be converted to lowercase."
# - "Spaces must be converted to underscores."
Expand Down

0 comments on commit e4f0e0d

Please sign in to comment.