Skip to content

Commit

Permalink
Merge pull request #228 from openfisca/fix_data_pypi
Browse files Browse the repository at this point in the history
Ajoute les données d'agrégats dans le paquet
  • Loading branch information
clallemand authored Jul 21, 2023
2 parents 6562baa + e0bc5d7 commit 30e7819
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

# 1.3.1 [#228](https://github.com/openfisca/openfisca-france-data/pull/228)
* Technical changes
- Ajoute de deux jeux de données utilisées pour les tests au paquet :
- 'assets/aggregats/taxipp/agregats_tests_taxipp_2_0.xlsx'
- `'assets/aggregats/ines/ines_2019.json'

# 1.3.0 [#227](https://github.com/openfisca/openfisca-france-data/pull/227)
* Technical changes
- Adapte le comparator pour effectuer plus de tests en distribution
Expand Down
28 changes: 18 additions & 10 deletions openfisca_france_data/erfs_fpr/input_data_builder/step_06_final.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,24 @@ def create_input_data_frame(temporary_store = None, year = None, export_flattene
"traitement_indiciaire_brut",
]

var_menages = [
'idmen',
'loyer',
'statut_occupation_logement',
'taxe_habitation',
'wprm',
'zone_apl',
'logement_conventionne',
'prest_precarite_hand' # on récupère la variable de montant de aah / caah pour pouvoir faire une imputation du handicap
]
if year >= 2018:
var_menages = [
'idmen',
'loyer',
'statut_occupation_logement',
'taxe_habitation',
'wprm',
'zone_apl',
'logement_conventionne',
'prest_precarite_hand' # on récupère la variable de montant de aah / caah pour pouvoir faire une imputation du handicap
]
else:
var_menages = [
'idmen',
'loyer',
'taxe_habitation',
'wprm',
]

individus = create_ids_and_roles(individus)
individus = individus[var_individus].copy()
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name = "OpenFisca-France-Data",
version = "1.3.0",
version = "1.3.1",
description = "OpenFisca-France-Data module to work with French survey data",
long_description = long_description,
long_description_content_type="text/markdown",
Expand All @@ -23,8 +23,9 @@
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering :: Information Analysis",
],
package_data = {
'openfisca_france_data/assets': ['openfisca_france_data/assets/agregats_tests_taxipp_2_0.xlsx'],
package_data = {
'openfisca_france_data': ['assets/aggregats/taxipp/agregats_tests_taxipp_2_0.xlsx',
'assets/aggregats/ines/ines_2019.json'],
},
entry_points = {
'console_scripts': [
Expand Down

0 comments on commit 30e7819

Please sign in to comment.