mobisurvstd 1.2.0__tar.gz → 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mobisurvstd-1.2.0/src/mobisurvstd.egg-info → mobisurvstd-1.2.2}/PKG-INFO +4 -1
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/README.md +2 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/pyproject.toml +2 -1
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/emc2.py +10 -17
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/classes.py +9 -3
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2010/deplacements.py +38 -38
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2010/menages.py +30 -30
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2020/motos.py +8 -8
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2020/trajets.py +13 -13
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2/src/mobisurvstd.egg-info}/PKG-INFO +4 -1
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd.egg-info/requires.txt +1 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/LICENSE.md +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/setup.cfg +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/__init__.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/__main__.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/__init__.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/common.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/deplacements.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/edgt.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/edvm.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/emd.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/menages.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/nantes_opendata.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/personnes.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/reader.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/survey.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/trajets.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cerema/zones.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/cli.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/common/__init__.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/common/cars.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/common/clean.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/common/households.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/common/legs.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/common/motorcycles.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/common/persons.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/common/trips.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/common/zones.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2010/__init__.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2010/personnes.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2010/survey.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2010/trajets.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2010/zones.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2020/__init__.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2020/deplacements.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2020/menages.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2020/personnes.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2020/survey.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/egt2020/voitures.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emg2023/__init__.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emg2023/deplacements.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emg2023/menages.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emg2023/personnes.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emg2023/survey.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emp/__init__.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emp/common.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emp/deplacements.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emp/menages.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emp/motos.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emp/personnes.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emp/survey.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/emp/voitures.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/logger.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/main.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/resources/__init__.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/resources/admin_express.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/resources/insee_data.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/resources/nuts.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/schema/__init__.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/schema/cars.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/schema/common.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/schema/guarantees.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/schema/households.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/schema/legs.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/schema/motorcycles.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/schema/persons.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/schema/trips.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/utils.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd/validation.py +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd.egg-info/SOURCES.txt +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd.egg-info/dependency_links.txt +0 -0
- {mobisurvstd-1.2.0 → mobisurvstd-1.2.2}/src/mobisurvstd.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mobisurvstd
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: A tool to standardize French mobility survey datasets (EMC2, EGT, EMP, etc.) into a unified format.
|
|
5
5
|
Author-email: Lucas Javaudin <lucas@lucasjavaudin.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -28,6 +28,7 @@ Requires-Dist: pyarrow>=19.0.1
|
|
|
28
28
|
Requires-Dist: requests>=2.32.3
|
|
29
29
|
Requires-Dist: tqdm>=4.67.3
|
|
30
30
|
Requires-Dist: typer>=0.16.0
|
|
31
|
+
Requires-Dist: typing-extensions>=4.15.0
|
|
31
32
|
Dynamic: license-file
|
|
32
33
|
|
|
33
34
|
[![Contributors][contributors-shield]][contributors-url]
|
|
@@ -208,6 +209,8 @@ Currently, MobiSurvStd supports the following survey types:
|
|
|
208
209
|
|
|
209
210
|
See [Survey Types](https://mobisurvstd.github.io/MobiSurvStd/surveys.html) for more.
|
|
210
211
|
|
|
212
|
+

|
|
213
|
+
|
|
211
214
|
Other survey types that are planned to be integrated are: `entd`.
|
|
212
215
|
If you know another survey format that could be integrated, feel free to open an issue on GitHub.
|
|
213
216
|
|
|
@@ -176,6 +176,8 @@ Currently, MobiSurvStd supports the following survey types:
|
|
|
176
176
|
|
|
177
177
|
See [Survey Types](https://mobisurvstd.github.io/MobiSurvStd/surveys.html) for more.
|
|
178
178
|
|
|
179
|
+

|
|
180
|
+
|
|
179
181
|
Other survey types that are planned to be integrated are: `entd`.
|
|
180
182
|
If you know another survey format that could be integrated, feel free to open an issue on GitHub.
|
|
181
183
|
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "mobisurvstd"
|
|
9
|
-
version = "1.2.
|
|
9
|
+
version = "1.2.2"
|
|
10
10
|
description = "A tool to standardize French mobility survey datasets (EMC2, EGT, EMP, etc.) into a unified format."
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
authors = [{ name = "Lucas Javaudin", email = "lucas@lucasjavaudin.com" }]
|
|
@@ -32,6 +32,7 @@ dependencies = [
|
|
|
32
32
|
"requests>=2.32.3",
|
|
33
33
|
"tqdm>=4.67.3",
|
|
34
34
|
"typer>=0.16.0",
|
|
35
|
+
"typing-extensions>=4.15.0",
|
|
35
36
|
]
|
|
36
37
|
requires-python = ">=3.10"
|
|
37
38
|
|
|
@@ -26,25 +26,18 @@ class EMC2Reader(CeremaStandardizer):
|
|
|
26
26
|
return [find_file(self.source, ".*_std_traj.csv")]
|
|
27
27
|
|
|
28
28
|
def detailed_zones_filenames(self):
|
|
29
|
-
return [
|
|
30
|
-
find_file_path(
|
|
31
|
-
self.source, r".*_ZF(_.*)?\.(TAB|shp)", subdir=os.path.join("Doc", "SIG")
|
|
32
|
-
)
|
|
33
|
-
]
|
|
29
|
+
return [find_file_path(self.source, r".*_ZF(_.*)?\.(TAB|shp)", subdir="SIG")]
|
|
34
30
|
|
|
35
31
|
def special_locations_filenames(self):
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
base = find_file_path(self.source, r".*_GT(?!_ext)(_.*)?\.(TAB|shp)", subdir="SIG")
|
|
33
|
+
ext = find_file_path(self.source, r".*_GT_externes(_.*)?\.(TAB|shp)", subdir="SIG")
|
|
34
|
+
if base and ext:
|
|
35
|
+
return [base, ext]
|
|
36
|
+
else:
|
|
37
|
+
return [base]
|
|
41
38
|
|
|
42
39
|
def draw_zones_filenames(self):
|
|
43
|
-
return [
|
|
44
|
-
find_file_path(
|
|
45
|
-
self.source, r".*_DTIR(_.*)?\.(TAB|shp)", subdir=os.path.join("Doc", "SIG")
|
|
46
|
-
)
|
|
47
|
-
]
|
|
40
|
+
return [find_file_path(self.source, r".*_DTIR(_.*)?\.(TAB|shp)", subdir="SIG")]
|
|
48
41
|
|
|
49
42
|
def survey_name(self):
|
|
50
43
|
filename = find_file_path(self.source, ".*_std_men.csv")
|
|
@@ -65,8 +58,8 @@ class EMC2Reader(CeremaStandardizer):
|
|
|
65
58
|
|
|
66
59
|
def gt_type_columns(self):
|
|
67
60
|
# Note that Bouzonville 2019 has some GT type data in MACRO but the MACRO column represents
|
|
68
|
-
# something else in the other surveys so it is not
|
|
69
|
-
return ["nature", "nom_typo", "theme_gt", "type"]
|
|
61
|
+
# something else in the other surveys so it is not used.
|
|
62
|
+
return ["nature", "nom_typo", "theme_gt", "famille_g", "type"]
|
|
70
63
|
|
|
71
64
|
def zf_id_columns(self):
|
|
72
65
|
return ["zf_fusion", "zf_160", "zf", "num_zf"]
|
|
@@ -264,12 +264,18 @@ class SurveyDataReader:
|
|
|
264
264
|
self._draw_zones = gpd.read_parquet(filename)
|
|
265
265
|
return self._draw_zones
|
|
266
266
|
|
|
267
|
-
def mean_date(self) -> date:
|
|
267
|
+
def mean_date(self) -> date | None:
|
|
268
268
|
"""Returns the mean date at which the survey was conducted (the middle date between the
|
|
269
269
|
survey's start and end date).
|
|
270
270
|
"""
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
if self.metadata["start_date"]:
|
|
272
|
+
start_date = date.fromisoformat(self.metadata["start_date"])
|
|
273
|
+
else:
|
|
274
|
+
return None
|
|
275
|
+
if self.metadata["end_date"]:
|
|
276
|
+
end_date = date.fromisoformat(self.metadata["end_date"])
|
|
277
|
+
else:
|
|
278
|
+
return None
|
|
273
279
|
return start_date + (end_date - start_date) / 2
|
|
274
280
|
|
|
275
281
|
|
|
@@ -63,51 +63,51 @@ SCHEMA = {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
PURPOSE_MAP = {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
1: "home:main", # Domicile habituel (celui où la personne est enquêtée)
|
|
67
|
+
2: "home:secondary", # Un des domiciles correspondant à une garde alternée
|
|
68
|
+
3: "home:secondary", # Résidence secondaire, logement occasionnel, hôtel, autre domicile
|
|
69
69
|
# Motifs professionnels
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
11: "work:usual", # Travail sur le lieu de travail déclaré dans la fiche personne
|
|
71
|
+
12: "work:secondary", # Travail sur un autre lieu (hors affaires professionnelles)
|
|
72
|
+
13: "work:other", # Affaires professionnelles hors lieu de travail habituel (RV professionnel, réunion, etc.)
|
|
73
|
+
14: "work:professional_tour", # Tournée professionnelle
|
|
74
74
|
# Restauration hors domicile
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
15: "work:business_meal", # Repas d’affaires, déjeuner professionnel
|
|
76
|
+
16: "leisure:lunch_break", # Pause déjeuner durant la journée de travail (cantine, cafétéria, restaurant situés hors du lieu de travail…)
|
|
77
|
+
17: "leisure:restaurant", # Autre restauration hors domicile (restaurant, bar, café, cybercafé…)
|
|
78
78
|
# Etudes -Garde d’enfants
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
21: "education:childcare", # Nourrice, crèche, garde d’enfants
|
|
80
|
+
22: "education:usual", # Études sur le lieu d'études déclaré (école maternelle et primaire)
|
|
81
|
+
23: "education:usual", # Études sur le lieu d'études déclaré (enseignement secondaire : collège et lycée)
|
|
82
|
+
24: "education:usual", # Études sur le lieu d'études déclaré (enseignement supérieur, universités et grandes écoles)
|
|
83
|
+
25: "education:other", # Études sur un autre lieu (école maternelle et primaire)
|
|
84
|
+
26: "education:other", # Études sur un autre lieu (enseignement secondaire : collège et lycée)
|
|
85
|
+
27: "education:other", # Études sur un autre lieu (enseignement supérieur, universités et grandes écoles)
|
|
86
86
|
# Achats
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
31: "shopping:daily", # Achats quotidiens (pain, journal, …)
|
|
88
|
+
32: "shopping:weekly", # Achats hebdomadaires ou bi hebdomadaires
|
|
89
|
+
33: "shopping:specialized", # Achats occasionnels (livres, vêtements, électroménager, musique, meubles etc.)
|
|
90
90
|
# Loisirs
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
41: "leisure:sport_or_culture", # Participation à une activité sportive, culturelle, associative ou religieuse
|
|
92
|
+
42: "leisure:walk_or_driving_lesson", # Promenade, lèche-vitrines (sans achat), leçons de conduite
|
|
93
|
+
43: "leisure:visiting:parents", # Visite à des parents
|
|
94
|
+
44: "leisure:visiting:friends", # Visite à des amis
|
|
95
|
+
45: "leisure:sport_or_culture", # Spectacle, exposition, cinéma, musée, théâtre, concert, match de foot…
|
|
96
|
+
46: "leisure:sport_or_culture", # Voyage, sortie touristique
|
|
97
|
+
47: "leisure:other", # Autres loisirs
|
|
98
98
|
# Démarches administratives/ Affaires personnelles
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
50: "task:procedure", # Démarches administratives
|
|
100
|
+
51: "task:job_search", # Recherche d’emploi (y. entretiens)
|
|
101
|
+
52: "task:healthcare", # Aide ou soins à des proches
|
|
102
|
+
53: "task:healthcare:hospital", # Santé (hôpital, clinique)
|
|
103
|
+
54: "task:healthcare:doctor", # Santé autres (consultation professionnel de la santé hors hôpital : médecin, dentiste, kiné, etc.)
|
|
104
|
+
55: "task:other", # Affaires personnelles autres (avocat, notaire, garage, réunion parents d’élèves, réunion de copropriétaires etc.)
|
|
105
105
|
# Accompagnement
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
61: "escort:transport:drop_off", # Dépose d’une personne à un mode de transport (station, gare, arrêt de bus, aéroport…)
|
|
107
|
+
62: "escort:transport:pick_up", # Reprise d’une personne à un mode de transport (station, gare, arrêt de bus, aéroport…)
|
|
108
|
+
63: "escort:activity:drop_off", # Accompagner quelqu’un dans un lieu autre qu’un mode de transport (école, garderie, amis, cinéma, sport, travail etc.)
|
|
109
|
+
64: "escort:activity:pick_up", # Aller chercher quelqu’un (dans un lieu autre qu’un mode de transport (école, garderie, amis, cinéma, sport, travail etc.)
|
|
110
|
+
98: "other", # Autre motif
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
SHOP_TYPE_MAP = {
|
|
@@ -200,33 +200,33 @@ CAR_OWNERSHIP_MAP = {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
PARKING_LOCATION_MAP = {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
203
|
+
1: "street", # Voie publique, payant à durée limitée
|
|
204
|
+
2: "street", # Voie publique, payant tarif résidentiel
|
|
205
|
+
3: "street", # Voie publique, gratuit autorisé
|
|
206
|
+
4: "street", # Voie publique, gratuit non autorisé
|
|
207
|
+
5: "garage", # Emplacement privé, gratuit
|
|
208
|
+
6: "garage", # Emplacement privé, propriétaire
|
|
209
|
+
7: "garage", # Emplacement privé, locataire
|
|
210
|
+
8: "parking_lot", # Stationnement ouvert au public, gratuit
|
|
211
|
+
9: "parking_lot", # Stationnement ouvert au public, propriétaire
|
|
212
|
+
10: "parking_lot", # Stationnement ouvert au public, locataire
|
|
213
|
+
11: "parking_lot", # Stationnement ouvert au public, payant à l'horaire
|
|
214
|
+
12: "parking_lot", # Stationnement ouvert au public, autres
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
PARKING_TYPE_MAP = {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
218
|
+
1: "paid", # Voie publique, payant à durée limitée
|
|
219
|
+
2: "paid", # Voie publique, payant tarif résidentiel
|
|
220
|
+
3: "free", # Voie publique, gratuit autorisé
|
|
221
|
+
4: "forbidden", # Voie publique, gratuit non autorisé
|
|
222
|
+
5: "free", # Emplacement privé, gratuit
|
|
223
|
+
6: "free", # Emplacement privé, propriétaire
|
|
224
|
+
7: "paid", # Emplacement privé, locataire
|
|
225
|
+
8: "free", # Stationnement ouvert au public, gratuit
|
|
226
|
+
9: "free", # Stationnement ouvert au public, propriétaire
|
|
227
|
+
10: "paid", # Stationnement ouvert au public, locataire
|
|
228
|
+
11: "paid", # Stationnement ouvert au public, payant à l'horaire
|
|
229
|
+
12: "other", # Stationnement ouvert au public, autres
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
MOTORCYCLE_TYPE_MAP = {
|
|
@@ -247,15 +247,15 @@ MOTORCYCLE_THERMIC_ENGINE_TYPE_MAP = {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
MOTORCYCLE_CM3_LB_MAP = {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
1: 0, # inférieur à 50 cm3
|
|
251
|
+
2: 50, # 50-125 cm3
|
|
252
|
+
3: 125, # Supérieur à 125 cm3
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
MOTORCYCLE_CM3_UB_MAP = {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
1: 50, # inférieur à 50 cm3
|
|
257
|
+
2: 125, # 50-125 cm3
|
|
258
|
+
3: None, # Supérieur à 125 cm3
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
|
|
@@ -22,17 +22,17 @@ SCHEMA = {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
FUEL_TYPE_MAP = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
11: "thermic", # Essence (moteur 2 temps)
|
|
26
|
+
12: "thermic", # Essence (moteur 4 temps)
|
|
27
|
+
2: "electric", # Electrique
|
|
28
|
+
9: "other", # Autre
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
THERMIC_ENGINE_TYPE_MAP = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
11: "two_stroke", # Essence (moteur 2 temps)
|
|
33
|
+
12: "four_stroke", # Essence (moteur 4 temps)
|
|
34
|
+
2: None, # Electrique
|
|
35
|
+
9: None, # Autre
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
MILEAGE_LB_MAP = {
|
|
@@ -126,22 +126,22 @@ UVP_MAP = {
|
|
|
126
126
|
|
|
127
127
|
# Index of household car based on "UVP" column.
|
|
128
128
|
VEHICLE_INDEX_MAP = {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
1: 1, # Modèle voiture 1
|
|
130
|
+
2: 1, # Modèle voiture 2
|
|
131
|
+
3: 1, # Modèle voiture 3
|
|
132
|
+
4: 1, # Modèle voiture 4
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
U2RM_MAP = {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
136
|
+
1: "household", # Modèle 2RM 1
|
|
137
|
+
2: "household", # Modèle 2RM 2
|
|
138
|
+
3: "household", # Modèle 2RM 3
|
|
139
|
+
4: "household", # Modèle 2RM 4
|
|
140
|
+
5: "other_household", # Une autre moto / un autre scooter du ménage
|
|
141
|
+
6: "shared", # Une moto / scooter en libre-service
|
|
142
|
+
7: "rental", # Une moto / scooter de location
|
|
143
|
+
9: "other", # Autre - Veuillez préciser. (Champ textuel saisissable)
|
|
144
|
+
10: "company", # Un scooter mis à disposition par mon employeur
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
PARKING_LOCATION_MAP = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mobisurvstd
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: A tool to standardize French mobility survey datasets (EMC2, EGT, EMP, etc.) into a unified format.
|
|
5
5
|
Author-email: Lucas Javaudin <lucas@lucasjavaudin.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -28,6 +28,7 @@ Requires-Dist: pyarrow>=19.0.1
|
|
|
28
28
|
Requires-Dist: requests>=2.32.3
|
|
29
29
|
Requires-Dist: tqdm>=4.67.3
|
|
30
30
|
Requires-Dist: typer>=0.16.0
|
|
31
|
+
Requires-Dist: typing-extensions>=4.15.0
|
|
31
32
|
Dynamic: license-file
|
|
32
33
|
|
|
33
34
|
[![Contributors][contributors-shield]][contributors-url]
|
|
@@ -208,6 +209,8 @@ Currently, MobiSurvStd supports the following survey types:
|
|
|
208
209
|
|
|
209
210
|
See [Survey Types](https://mobisurvstd.github.io/MobiSurvStd/surveys.html) for more.
|
|
210
211
|
|
|
212
|
+

|
|
213
|
+
|
|
211
214
|
Other survey types that are planned to be integrated are: `entd`.
|
|
212
215
|
If you know another survey format that could be integrated, feel free to open an issue on GitHub.
|
|
213
216
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|