@openfisca/

framework-openfisca-france

Python 2.7

No description

fork
loading
Files
  • main.py
  • situations
  • framework_methods.py
  • README.md
  • reforme_test.py
  • resultats.csv

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8144997712300275","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"IyAtKi0gY29kaW5nOiB1dGYtOCAtKi0KCiMjIyMjIyMgSW1wb3J0ZXogT3BlbkZpc2NhICAjIyMjIyMjIyMjIwoKaW1wb3J0IG9wZW5maXNjYV9mcmFuY2UKZnJvbSBmcmFtZXdvcmtfbWV0aG9kcyBpbXBvcnQgKgpmcm9tIHJlZm9ybWVfdGVzdCBpbXBvcnQgTWFSZWZvcm0KCnByaW50ICgnY2hhcmdlbWVudCBkdSBtb2TDqGxlIHNvY2lvLWZpc2NhbC4uLicpCmxlZ2lzbGF0aW9uX2ZyYW5jZSA9IG9wZW5maXNjYV9mcmFuY2UuRnJhbmNlVGF4QmVuZWZpdFN5c3RlbSgpCgpyZWZvcm1lcyA9IHsKICAgICJSZWZvcm1lIGRlIHRlc3QiIDogTWFSZWZvcm0obGVnaXNsYXRpb25fZnJhbmNlKQp9CgojIyMjIyMjIExpc3RleiBsZXMgc2l0dWF0aW9ucyAjIyMjIyMjIyMjIwoKc2l0dWF0aW9ucyA9ICJzaXR1YXRpb25zLyIKCiMjIyMjIyMgTGlzdGV6IGxlcyBjYWxjdWxzIMOgIGVmZmVjdHVlciBldCBsZXMgcMOpcmlvZGVzIHN1ciBsZXF1ZWxsZXMgbGVzIGNhbGN1bGVyICMjIyMjIyMjIyMjCgpwZXJpb2RfbW9udGggPSAnMjAxOC0wMicKcGVyaW9kX3llYXIgPSAnMjAxNycKY2FsY3VscyA9IHsKICAgICdiYXNlX3Jlc3NvdXJjZV9tZW5zdWVsbGVfaW5kaXZpZHUnOiBwZXJpb2RfbW9udGgsCiAgICAnYmFzZV9yZXNzb3VyY2VfbWVuc3VlbGxlX2ZhbWlsbGUnOiBwZXJpb2RfbW9udGgsCiAgICAnYmFzZV9yZXNzb3VyY2VfYW5udWVsbGVfaW5kaXZpZHUnOiBwZXJpb2RfeWVhciwKICAgICdhaWRlX2xvZ2VtZW50X2Jhc2VfcmVzc291cmNlcyc6IHBlcmlvZF9tb250aCwKICAgICdhaWRlX2xvZ2VtZW50JzogcGVyaW9kX21vbnRoLAogICAgJ2xveWVyJzogcGVyaW9kX21vbnRoCn0KCgpydW5fZnJhbWV3b3JrKHJlZm9ybWVzLCBzaXR1YXRpb25zLCBjYWxjdWxzKQo="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- coding: utf-8 -*-

####### Importez OpenFisca  ###########

import openfisca_france
from framework_methods import *
from reforme_test import MaReform

print ('chargement du modèle socio-fiscal...')
legislation_france = openfisca_france.FranceTaxBenefitSystem()

reformes = {
    "Reforme de test" : MaReform(legislation_france)
}

####### Listez les situations ###########

situations = "situations/"

####### Listez les calculs à effectuer et les périodes sur lequelles les calculer ###########

period_month = '2018-02'
period_year = '2017'
calculs = {
    'base_ressource_mensuelle_individu': period_month,
    'base_ressource_mensuelle_famille': period_month,
    'base_ressource_annuelle_individu': period_year,
    'aide_logement_base_ressources': period_month,
    'aide_logement': period_month,
    'loyer': period_month
}


run_framework(reformes, situations, calculs)