Skip to content

Commit 789236c

Browse files
committed
Update analyser_merge_poste_FR.py
1 parent 55affd3 commit 789236c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

analysers/analyser_merge_poste_FR.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ def __init__(self, config, logger = None):
4747
CSV(
4848
SourceDataFair(
4949
attribution="La Poste",
50-
url="https://datanova.laposte.fr/datasets/laposte-poincont", file_name="011PoinCont.csv",
51-
encoding="LATIN1"),
50+
url="https://datanova.laposte.fr/datasets/laposte-poincont", file_name="011PoinCont.csv"),
5251
separator = ";"),
5352
Load_XY("Longitude", "Latitude"),
5453
Conflate(
@@ -75,8 +74,7 @@ def __init__(self, config, logger = None):
7574
"atm": lambda res: self.bool[res["Distributeur_de_billets"]],
7675
"stamping_machine": lambda res: self.bool[res["Affranchissement_Libre_Service"]],
7776
"wheelchair": lambda res:
78-
"yes" if self.bool[res["Accessibilité_Absence_de_ressaut_de_plus_de_2_cm_de_haut"]] and self.bool[res["Accessibilité_Entrée_autonome_en_fauteuil_roulant_possible"]] else
79-
"limited" if self.bool[res["Accessibilité_Absence_de_ressaut_de_plus_de_2_cm_de_haut"]] or self.bool[res["Accessibilité_Entrée_autonome_en_fauteuil_roulant_possible"]] else
77+
"yes" if self.bool[res["Accessibilité_Accessible_aux_personnes_handicapées_moteur"]] else
8078
"no"},
8179
mapping2 = {
8280
"operator": lambda res:
@@ -96,4 +94,4 @@ def __init__(self, config, logger = None):
9694
"phone": lambda res: ("+33" + res["Numéro_de_téléphone"][1:]) if res["Numéro_de_téléphone"] != "3631" else None},
9795
text = lambda tags, fields: {"en": "Post office {0}".format(", ".join(filter(lambda x: x and x != 'None', [fields["Précision_du_géocodage"].lower(), fields["Adresse"], fields["Complement_d_adresse"], fields["Lieu_dit"], fields["Code_postal"], fields["localité"]])))} )))
9896

99-
bool = {"Non": None, "Oui": "yes"}
97+
bool = {"Non": None, "Oui": "yes", None: None}

0 commit comments

Comments
 (0)