UNPKG

@leximpact/socio-fiscal-openfisca-json

Version:

JSON & YAML data extracted from OpenFisca-France with Indirect Taxation source code (parameters, variables, etc)

1,153 lines (1,152 loc) 41 kB
{ "default_value": 0, "definition_period": "year", "dtype": "float32", "entity": "menage", "file_path": "openfisca_france_indirect_taxation/variables/consommation/depenses_energies.py", "formulas": { "0001-01-01": { "ast": { "args": { "args": [ { "arg": "menage", "ast_class": "arg", "col_offset": 12, "end_col_offset": 18, "end_lineno": 1, "lineno": 1 }, { "arg": "period", "ast_class": "arg", "col_offset": 20, "end_col_offset": 26, "end_lineno": 1, "lineno": 1 }, { "arg": "parameters", "ast_class": "arg", "col_offset": 28, "end_col_offset": 38, "end_lineno": 1, "lineno": 1 } ], "ast_class": "arguments", "defaults": [], "kw_defaults": [], "kwonlyargs": [], "posonlyargs": [] }, "ast_class": "FunctionDef", "body": [ { "ast_class": "Assign", "col_offset": 4, "end_col_offset": 87, "end_lineno": 2, "lineno": 2, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 35, "end_lineno": 2, "id": "depenses_electricite_percentile", "lineno": 2 } ], "value": { "args": [ { "ast_class": "Constant", "col_offset": 45, "end_col_offset": 78, "end_lineno": 2, "lineno": 2, "value": "depenses_electricite_percentile" }, { "ast_class": "Name", "col_offset": 80, "ctx": { "ast_class": "Load" }, "end_col_offset": 86, "end_lineno": 2, "id": "period", "lineno": 2 } ], "ast_class": "Call", "col_offset": 38, "end_col_offset": 87, "end_lineno": 2, "func": { "ast_class": "Name", "col_offset": 38, "ctx": { "ast_class": "Load" }, "end_col_offset": 44, "end_lineno": 2, "id": "menage", "lineno": 2 }, "keywords": [], "lineno": 2 } }, { "ast_class": "Assign", "col_offset": 4, "end_col_offset": 111, "end_lineno": 5, "lineno": 4, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 19, "end_lineno": 4, "id": "tarif_fixe_3kva", "lineno": 4 } ], "value": { "ast_class": "Attribute", "attr": "tarif_fixe_3_kva", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 111, "end_lineno": 5, "lineno": 5, "value": { "ast_class": "Attribute", "attr": "tarif_fixe_base_edf_ttc", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 94, "end_lineno": 5, "lineno": 5, "value": { "ast_class": "Attribute", "attr": "tarifs_reglementes_edf", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 70, "end_lineno": 5, "lineno": 5, "value": { "ast_class": "Attribute", "attr": "tarifs_energie", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 47, "end_lineno": 5, "lineno": 5, "value": { "args": [ { "ast_class": "Attribute", "attr": "start", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 31, "end_lineno": 5, "lineno": 5, "value": { "ast_class": "Name", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 25, "end_lineno": 5, "id": "period", "lineno": 5 } } ], "ast_class": "Call", "col_offset": 8, "end_col_offset": 32, "end_lineno": 5, "func": { "ast_class": "Name", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 18, "end_lineno": 5, "id": "parameters", "lineno": 5 }, "keywords": [], "lineno": 5 } } } } } }, { "ast_class": "Assign", "col_offset": 4, "end_col_offset": 111, "end_lineno": 7, "lineno": 6, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 19, "end_lineno": 6, "id": "tarif_fixe_6kva", "lineno": 6 } ], "value": { "ast_class": "Attribute", "attr": "tarif_fixe_6_kva", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 111, "end_lineno": 7, "lineno": 7, "value": { "ast_class": "Attribute", "attr": "tarif_fixe_base_edf_ttc", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 94, "end_lineno": 7, "lineno": 7, "value": { "ast_class": "Attribute", "attr": "tarifs_reglementes_edf", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 70, "end_lineno": 7, "lineno": 7, "value": { "ast_class": "Attribute", "attr": "tarifs_energie", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 47, "end_lineno": 7, "lineno": 7, "value": { "args": [ { "ast_class": "Attribute", "attr": "start", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 31, "end_lineno": 7, "lineno": 7, "value": { "ast_class": "Name", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 25, "end_lineno": 7, "id": "period", "lineno": 7 } } ], "ast_class": "Call", "col_offset": 8, "end_col_offset": 32, "end_lineno": 7, "func": { "ast_class": "Name", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 18, "end_lineno": 7, "id": "parameters", "lineno": 7 }, "keywords": [], "lineno": 7 } } } } } }, { "ast_class": "Assign", "col_offset": 4, "end_col_offset": 111, "end_lineno": 9, "lineno": 8, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 19, "end_lineno": 8, "id": "tarif_fixe_9kva", "lineno": 8 } ], "value": { "ast_class": "Attribute", "attr": "tarif_fixe_9_kva", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 111, "end_lineno": 9, "lineno": 9, "value": { "ast_class": "Attribute", "attr": "tarif_fixe_base_edf_ttc", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 94, "end_lineno": 9, "lineno": 9, "value": { "ast_class": "Attribute", "attr": "tarifs_reglementes_edf", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 70, "end_lineno": 9, "lineno": 9, "value": { "ast_class": "Attribute", "attr": "tarifs_energie", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 47, "end_lineno": 9, "lineno": 9, "value": { "args": [ { "ast_class": "Attribute", "attr": "start", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 31, "end_lineno": 9, "lineno": 9, "value": { "ast_class": "Name", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 25, "end_lineno": 9, "id": "period", "lineno": 9 } } ], "ast_class": "Call", "col_offset": 8, "end_col_offset": 32, "end_lineno": 9, "func": { "ast_class": "Name", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 18, "end_lineno": 9, "id": "parameters", "lineno": 9 }, "keywords": [], "lineno": 9 } } } } } }, { "ast_class": "Assign", "col_offset": 4, "end_col_offset": 112, "end_lineno": 11, "lineno": 10, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 20, "end_lineno": 10, "id": "tarif_fixe_12kva", "lineno": 10 } ], "value": { "ast_class": "Attribute", "attr": "tarif_fixe_12_kva", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 112, "end_lineno": 11, "lineno": 11, "value": { "ast_class": "Attribute", "attr": "tarif_fixe_base_edf_ttc", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 94, "end_lineno": 11, "lineno": 11, "value": { "ast_class": "Attribute", "attr": "tarifs_reglementes_edf", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 70, "end_lineno": 11, "lineno": 11, "value": { "ast_class": "Attribute", "attr": "tarifs_energie", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 47, "end_lineno": 11, "lineno": 11, "value": { "args": [ { "ast_class": "Attribute", "attr": "start", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 31, "end_lineno": 11, "lineno": 11, "value": { "ast_class": "Name", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 25, "end_lineno": 11, "id": "period", "lineno": 11 } } ], "ast_class": "Call", "col_offset": 8, "end_col_offset": 32, "end_lineno": 11, "func": { "ast_class": "Name", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 18, "end_lineno": 11, "id": "parameters", "lineno": 11 }, "keywords": [], "lineno": 11 } } } } } }, { "ast_class": "Assign", "col_offset": 4, "end_col_offset": 112, "end_lineno": 13, "lineno": 12, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 20, "end_lineno": 12, "id": "tarif_fixe_15kva", "lineno": 12 } ], "value": { "ast_class": "Attribute", "attr": "tarif_fixe_15_kva", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 112, "end_lineno": 13, "lineno": 13, "value": { "ast_class": "Attribute", "attr": "tarif_fixe_base_edf_ttc", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 94, "end_lineno": 13, "lineno": 13, "value": { "ast_class": "Attribute", "attr": "tarifs_reglementes_edf", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 70, "end_lineno": 13, "lineno": 13, "value": { "ast_class": "Attribute", "attr": "tarifs_energie", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 47, "end_lineno": 13, "lineno": 13, "value": { "args": [ { "ast_class": "Attribute", "attr": "start", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 31, "end_lineno": 13, "lineno": 13, "value": { "ast_class": "Name", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 25, "end_lineno": 13, "id": "period", "lineno": 13 } } ], "ast_class": "Call", "col_offset": 8, "end_col_offset": 32, "end_lineno": 13, "func": { "ast_class": "Name", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 18, "end_lineno": 13, "id": "parameters", "lineno": 13 }, "keywords": [], "lineno": 13 } } } } } }, { "ast_class": "Assign", "col_offset": 4, "end_col_offset": 9, "end_lineno": 21, "lineno": 15, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 14, "end_lineno": 15, "id": "tarif_fixe", "lineno": 15 } ], "value": { "ast_class": "BinOp", "col_offset": 8, "end_col_offset": 67, "end_lineno": 20, "left": { "ast_class": "BinOp", "col_offset": 8, "end_col_offset": 108, "end_lineno": 19, "left": { "ast_class": "BinOp", "col_offset": 8, "end_col_offset": 107, "end_lineno": 18, "left": { "ast_class": "BinOp", "col_offset": 8, "end_col_offset": 106, "end_lineno": 17, "left": { "ast_class": "BinOp", "col_offset": 8, "end_col_offset": 63, "end_lineno": 16, "left": { "ast_class": "Compare", "col_offset": 9, "comparators": [ { "ast_class": "Constant", "col_offset": 43, "end_col_offset": 44, "end_lineno": 16, "lineno": 16, "value": 4 } ], "end_col_offset": 44, "end_lineno": 16, "left": { "ast_class": "Name", "col_offset": 9, "ctx": { "ast_class": "Load" }, "end_col_offset": 40, "end_lineno": 16, "id": "depenses_electricite_percentile", "lineno": 16 }, "lineno": 16, "ops": [ { "ast_class": "Lt" } ] }, "lineno": 16, "op": { "ast_class": "Mult" }, "right": { "ast_class": "Name", "col_offset": 48, "ctx": { "ast_class": "Load" }, "end_col_offset": 63, "end_lineno": 16, "id": "tarif_fixe_3kva", "lineno": 16 } }, "lineno": 16, "op": { "ast_class": "Add" }, "right": { "ast_class": "BinOp", "col_offset": 10, "end_col_offset": 106, "end_lineno": 17, "left": { "ast_class": "BinOp", "col_offset": 10, "end_col_offset": 88, "end_lineno": 17, "left": { "ast_class": "Compare", "col_offset": 11, "comparators": [ { "ast_class": "Constant", "col_offset": 45, "end_col_offset": 46, "end_lineno": 17, "lineno": 17, "value": 4 } ], "end_col_offset": 46, "end_lineno": 17, "left": { "ast_class": "Name", "col_offset": 11, "ctx": { "ast_class": "Load" }, "end_col_offset": 42, "end_lineno": 17, "id": "depenses_electricite_percentile", "lineno": 17 }, "lineno": 17, "ops": [ { "ast_class": "Gt" } ] }, "lineno": 17, "op": { "ast_class": "Mult" }, "right": { "ast_class": "Compare", "col_offset": 51, "comparators": [ { "ast_class": "Constant", "col_offset": 85, "end_col_offset": 87, "end_lineno": 17, "lineno": 17, "value": 52 } ], "end_col_offset": 87, "end_lineno": 17, "left": { "ast_class": "Name", "col_offset": 51, "ctx": { "ast_class": "Load" }, "end_col_offset": 82, "end_lineno": 17, "id": "depenses_electricite_percentile", "lineno": 17 }, "lineno": 17, "ops": [ { "ast_class": "Lt" } ] } }, "lineno": 17, "op": { "ast_class": "Mult" }, "right": { "ast_class": "Name", "col_offset": 91, "ctx": { "ast_class": "Load" }, "end_col_offset": 106, "end_lineno": 17, "id": "tarif_fixe_6kva", "lineno": 17 } } }, "lineno": 16, "op": { "ast_class": "Add" }, "right": { "ast_class": "BinOp", "col_offset": 10, "end_col_offset": 107, "end_lineno": 18, "left": { "ast_class": "BinOp", "col_offset": 10, "end_col_offset": 89, "end_lineno": 18, "left": { "ast_class": "Compare", "col_offset": 11, "comparators": [ { "ast_class": "Constant", "col_offset": 45, "end_col_offset": 47, "end_lineno": 18, "lineno": 18, "value": 52 } ], "end_col_offset": 47, "end_lineno": 18, "left": { "ast_class": "Name", "col_offset": 11, "ctx": { "ast_class": "Load" }, "end_col_offset": 42, "end_lineno": 18, "id": "depenses_electricite_percentile", "lineno": 18 }, "lineno": 18, "ops": [ { "ast_class": "Gt" } ] }, "lineno": 18, "op": { "ast_class": "Mult" }, "right": { "ast_class": "Compare", "col_offset": 52, "comparators": [ { "ast_class": "Constant", "col_offset": 86, "end_col_offset": 88, "end_lineno": 18, "lineno": 18, "value": 78 } ], "end_col_offset": 88, "end_lineno": 18, "left": { "ast_class": "Name", "col_offset": 52, "ctx": { "ast_class": "Load" }, "end_col_offset": 83, "end_lineno": 18, "id": "depenses_electricite_percentile", "lineno": 18 }, "lineno": 18, "ops": [ { "ast_class": "Lt" } ] } }, "lineno": 18, "op": { "ast_class": "Mult" }, "right": { "ast_class": "Name", "col_offset": 92, "ctx": { "ast_class": "Load" }, "end_col_offset": 107, "end_lineno": 18, "id": "tarif_fixe_9kva", "lineno": 18 } } }, "lineno": 16, "op": { "ast_class": "Add" }, "right": { "ast_class": "BinOp", "col_offset": 10, "end_col_offset": 108, "end_lineno": 19, "left": { "ast_class": "BinOp", "col_offset": 10, "end_col_offset": 89, "end_lineno": 19, "left": { "ast_class": "Compare", "col_offset": 11, "comparators": [ { "ast_class": "Constant", "col_offset": 45, "end_col_offset": 47, "end_lineno": 19, "lineno": 19, "value": 78 } ], "end_col_offset": 47, "end_lineno": 19, "left": { "ast_class": "Name", "col_offset": 11, "ctx": { "ast_class": "Load" }, "end_col_offset": 42, "end_lineno": 19, "id": "depenses_electricite_percentile", "lineno": 19 }, "lineno": 19, "ops": [ { "ast_class": "Gt" } ] }, "lineno": 19, "op": { "ast_class": "Mult" }, "right": { "ast_class": "Compare", "col_offset": 52, "comparators": [ { "ast_class": "Constant", "col_offset": 86, "end_col_offset": 88, "end_lineno": 19, "lineno": 19, "value": 88 } ], "end_col_offset": 88, "end_lineno": 19, "left": { "ast_class": "Name", "col_offset": 52, "ctx": { "ast_class": "Load" }, "end_col_offset": 83, "end_lineno": 19, "id": "depenses_electricite_percentile", "lineno": 19 }, "lineno": 19, "ops": [ { "ast_class": "Lt" } ] } }, "lineno": 19, "op": { "ast_class": "Mult" }, "right": { "ast_class": "Name", "col_offset": 92, "ctx": { "ast_class": "Load" }, "end_col_offset": 108, "end_lineno": 19, "id": "tarif_fixe_12kva", "lineno": 19 } } }, "lineno": 16, "op": { "ast_class": "Add" }, "right": { "ast_class": "BinOp", "col_offset": 10, "end_col_offset": 67, "end_lineno": 20, "left": { "ast_class": "Compare", "col_offset": 11, "comparators": [ { "ast_class": "Constant", "col_offset": 45, "end_col_offset": 47, "end_lineno": 20, "lineno": 20, "value": 88 } ], "end_col_offset": 47, "end_lineno": 20, "left": { "ast_class": "Name", "col_offset": 11, "ctx": { "ast_class": "Load" }, "end_col_offset": 42, "end_lineno": 20, "id": "depenses_electricite_percentile", "lineno": 20 }, "lineno": 20, "ops": [ { "ast_class": "Gt" } ] }, "lineno": 20, "op": { "ast_class": "Mult" }, "right": { "ast_class": "Name", "col_offset": 51, "ctx": { "ast_class": "Load" }, "end_col_offset": 67, "end_lineno": 20, "id": "tarif_fixe_15kva", "lineno": 20 } } } }, { "ast_class": "Return", "col_offset": 4, "end_col_offset": 21, "end_lineno": 23, "lineno": 23, "value": { "ast_class": "Name", "col_offset": 11, "ctx": { "ast_class": "Load" }, "end_col_offset": 21, "end_lineno": 23, "id": "tarif_fixe", "lineno": 23 } } ], "col_offset": 0, "decorator_list": [], "end_col_offset": 21, "end_lineno": 23, "lineno": 1, "name": "formula" }, "file_path": "openfisca_france_indirect_taxation/variables/consommation/depenses_energies.py", "parameters": [ "tarifs_energie.tarifs_reglementes_edf.tarif_fixe_base_edf_ttc.tarif_fixe_12_kva", "tarifs_energie.tarifs_reglementes_edf.tarif_fixe_base_edf_ttc.tarif_fixe_15_kva", "tarifs_energie.tarifs_reglementes_edf.tarif_fixe_base_edf_ttc.tarif_fixe_3_kva", "tarifs_energie.tarifs_reglementes_edf.tarif_fixe_base_edf_ttc.tarif_fixe_6_kva", "tarifs_energie.tarifs_reglementes_edf.tarif_fixe_base_edf_ttc.tarif_fixe_9_kva" ], "source_code": "def formula(menage, period, parameters):\n depenses_electricite_percentile = menage('depenses_electricite_percentile', period)\n\n tarif_fixe_3kva = \\\n parameters(period.start).tarifs_energie.tarifs_reglementes_edf.tarif_fixe_base_edf_ttc.tarif_fixe_3_kva\n tarif_fixe_6kva = \\\n parameters(period.start).tarifs_energie.tarifs_reglementes_edf.tarif_fixe_base_edf_ttc.tarif_fixe_6_kva\n tarif_fixe_9kva = \\\n parameters(period.start).tarifs_energie.tarifs_reglementes_edf.tarif_fixe_base_edf_ttc.tarif_fixe_9_kva\n tarif_fixe_12kva = \\\n parameters(period.start).tarifs_energie.tarifs_reglementes_edf.tarif_fixe_base_edf_ttc.tarif_fixe_12_kva\n tarif_fixe_15kva = \\\n parameters(period.start).tarifs_energie.tarifs_reglementes_edf.tarif_fixe_base_edf_ttc.tarif_fixe_15_kva\n\n tarif_fixe = (\n (depenses_electricite_percentile < 4) * tarif_fixe_3kva\n + (depenses_electricite_percentile > 4) * (depenses_electricite_percentile < 52) * tarif_fixe_6kva\n + (depenses_electricite_percentile > 52) * (depenses_electricite_percentile < 78) * tarif_fixe_9kva\n + (depenses_electricite_percentile > 78) * (depenses_electricite_percentile < 88) * tarif_fixe_12kva\n + (depenses_electricite_percentile > 88) * tarif_fixe_15kva\n )\n\n return tarif_fixe\n", "start_line_number": 224, "stop_line_number": 247, "variables": [ "depenses_electricite_percentile" ] } }, "json_type": "number", "label": "Dépenses en électricité des ménages sur le coût fixe de l'abonnement, après affectation d'un compteur", "name": "depenses_electricite_tarif_fixe", "referring_variables": [ "depenses_electricite_ajustees_taxe_carbone", "depenses_electricite_variables", "quantites_electricite_ajustees_taxe_carbone" ], "start_line_number": 219, "stop_line_number": 247, "value_type": "float" }