@openfisca/

TutorielReformeParametrique

Python 2.7

No description

fork
loading
Files
  • main.py
  • reforme_parametrique.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.002135170534147024","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"IyAtKi0gY29kaW5nOiB1dGYtOCAtKi0KCiMgSW1wb3J0ZXogT3BlbkZpc2NhCmltcG9ydCBvcGVuZmlzY2FfZnJhbmNlCmZyb20gcmVmb3JtZV9wYXJhbWV0cmlxdWUgaW1wb3J0IE1hUmVmb3JtZQoKIyBDb25zdWx0ZXogbGEgc2l0dWF0aW9uIGFjdHVlbGxlCmxlZ2lzbGF0aW9uX2ZyYW5jZSA9IG9wZW5maXNjYV9mcmFuY2UuRnJhbmNlVGF4QmVuZWZpdFN5c3RlbSgpCgpyZXN1bHRhdF9hY3R1ZWwgPSBsZWdpc2xhdGlvbl9mcmFuY2UucGFyYW1ldGVycy5pbXBvdF9yZXZlbnUuYmFyZW1lWzFdLnJhdGUKCnByaW50ICJSw6lzdWx0YXQgYWN0dWVsIgpwcmludCByZXN1bHRhdF9hY3R1ZWwKCiMgQ29uc3VsdGV6IGxhIHNpdHVhdGlvbiBhdmVjIGxhIHJlZm9ybWUKbGVnaXNsYXRpb25fcmVmb3JtZSA9IE1hUmVmb3JtZShsZWdpc2xhdGlvbl9mcmFuY2UpCgpyZXN1bHRhdF9hcHJlc19yZWZvcm1lID0gbGVnaXNsYXRpb25fcmVmb3JtZS5wYXJhbWV0ZXJzLmltcG90X3JldmVudS5iYXJlbWVbMV0ucmF0ZQoKcHJpbnQgIlJlc3VsdGF0IGFwcsOocyByZWZvcm1lIgpwcmludCByZXN1bHRhdF9hcHJlc19yZWZvcm1l"},"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
# -*- coding: utf-8 -*-

# Importez OpenFisca
import openfisca_france
from reforme_parametrique import MaReforme

# Consultez la situation actuelle
legislation_france = openfisca_france.FranceTaxBenefitSystem()

resultat_actuel = legislation_france.parameters.impot_revenu.bareme[1].rate

print "Résultat actuel"
print resultat_actuel

# Consultez la situation avec la reforme
legislation_reforme = MaReforme(legislation_france)

resultat_apres_reforme = legislation_reforme.parameters.impot_revenu.bareme[1].rate

print "Resultat après reforme"
print resultat_apres_reforme