openfisca / openfisca-france-indirect-taxation

French indirect taxation module for OpenFisca
http://www.openfisca.fr/
GNU Affero General Public License v3.0
5 stars 13 forks source link

Build_data for 2011 only #155

Closed thomasdouenne closed 7 years ago

thomasdouenne commented 7 years ago

The script that builds consumption data (step_1_1_homogeneisation_donnees_depenses) is designed for 2011 only. When running the run_all for 2000 and 2005, consumption variables are still called poste_coicop_xxx (instead of poste_x_x_x).

We need to generalize it to include 2000 and 2005.

thomasdouenne commented 7 years ago

When applying to 2000 the function that translates variable names, it works. We need to check everything is done correctly. When applying it to 2005, it raises an error. 'c05316' is missing from the survey data

benjello commented 7 years ago

There might be a typo in the survey. You should investigate more upstream

thomasdouenne commented 7 years ago

There is a variable c05316 in the file Matrice passage 2005-COICOP.csv that is used to match variable names with those in BdF, but this variable is absent from BdF. This raises an assertion error. I seems Matrice passage 2005-COICOP.csv is not automatically generated but was copied, so should I directly erase this variable from the file?

benjello commented 7 years ago

No erase the variable just after reading the csv file

thomasdouenne commented 7 years ago

Ok