UNPKG

@leximpact/socio-fiscal-openfisca-json

Version:

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

302 lines (301 loc) 9.61 kB
{ "default_value": 0, "definition_period": "year", "dtype": "float32", "entity": "menage", "file_path": "openfisca_france_indirect_taxation/variables/consommation/quantites_energie.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": 85, "end_lineno": 2, "lineno": 2, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 34, "end_lineno": 2, "id": "depenses_combustibles_liquides", "lineno": 2 } ], "value": { "args": [ { "ast_class": "Constant", "col_offset": 44, "end_col_offset": 76, "end_lineno": 2, "lineno": 2, "value": "depenses_combustibles_liquides" }, { "ast_class": "Name", "col_offset": 78, "ctx": { "ast_class": "Load" }, "end_col_offset": 84, "end_lineno": 2, "id": "period", "lineno": 2 } ], "ast_class": "Call", "col_offset": 37, "end_col_offset": 85, "end_lineno": 2, "func": { "ast_class": "Name", "col_offset": 37, "ctx": { "ast_class": "Load" }, "end_col_offset": 43, "end_lineno": 2, "id": "menage", "lineno": 2 }, "keywords": [], "lineno": 2 } }, { "ast_class": "Assign", "col_offset": 4, "end_col_offset": 154, "end_lineno": 4, "lineno": 3, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 30, "end_lineno": 3, "id": "prix_combustibles_liquides", "lineno": 3 } ], "value": { "ast_class": "Attribute", "attr": "prix_annuel_moyen_fioul_domestique_ttc_livraisons_2000_4999_litres_en_euro_par_litre", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 154, "end_lineno": 4, "lineno": 4, "value": { "ast_class": "Attribute", "attr": "prix_fioul_domestique", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 69, "end_lineno": 4, "lineno": 4, "value": { "ast_class": "Attribute", "attr": "tarifs_energie", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 47, "end_lineno": 4, "lineno": 4, "value": { "args": [ { "ast_class": "Attribute", "attr": "start", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 31, "end_lineno": 4, "lineno": 4, "value": { "ast_class": "Name", "col_offset": 19, "ctx": { "ast_class": "Load" }, "end_col_offset": 25, "end_lineno": 4, "id": "period", "lineno": 4 } } ], "ast_class": "Call", "col_offset": 8, "end_col_offset": 32, "end_lineno": 4, "func": { "ast_class": "Name", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 18, "end_lineno": 4, "id": "parameters", "lineno": 4 }, "keywords": [], "lineno": 4 } } } } }, { "ast_class": "Assign", "col_offset": 4, "end_col_offset": 96, "end_lineno": 6, "lineno": 6, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 34, "end_lineno": 6, "id": "quantite_combustibles_liquides", "lineno": 6 } ], "value": { "ast_class": "BinOp", "col_offset": 37, "end_col_offset": 96, "end_lineno": 6, "left": { "ast_class": "Name", "col_offset": 37, "ctx": { "ast_class": "Load" }, "end_col_offset": 67, "end_lineno": 6, "id": "depenses_combustibles_liquides", "lineno": 6 }, "lineno": 6, "op": { "ast_class": "Div" }, "right": { "ast_class": "Name", "col_offset": 70, "ctx": { "ast_class": "Load" }, "end_col_offset": 96, "end_lineno": 6, "id": "prix_combustibles_liquides", "lineno": 6 } } }, { "ast_class": "Return", "col_offset": 4, "end_col_offset": 41, "end_lineno": 8, "lineno": 8, "value": { "ast_class": "Name", "col_offset": 11, "ctx": { "ast_class": "Load" }, "end_col_offset": 41, "end_lineno": 8, "id": "quantite_combustibles_liquides", "lineno": 8 } } ], "col_offset": 0, "decorator_list": [], "end_col_offset": 41, "end_lineno": 8, "lineno": 1, "name": "formula" }, "file_path": "openfisca_france_indirect_taxation/variables/consommation/quantites_energie.py", "parameters": [ "tarifs_energie.prix_fioul_domestique.prix_annuel_moyen_fioul_domestique_ttc_livraisons_2000_4999_litres_en_euro_par_litre" ], "source_code": "def formula(menage, period, parameters):\n depenses_combustibles_liquides = menage('depenses_combustibles_liquides', period)\n prix_combustibles_liquides = \\\n parameters(period.start).tarifs_energie.prix_fioul_domestique.prix_annuel_moyen_fioul_domestique_ttc_livraisons_2000_4999_litres_en_euro_par_litre\n\n quantite_combustibles_liquides = depenses_combustibles_liquides / prix_combustibles_liquides\n\n return quantite_combustibles_liquides\n", "start_line_number": 14, "stop_line_number": 22, "variables": [ "depenses_combustibles_liquides" ] } }, "json_type": "number", "label": "Quantité de combustibles solides (en litres) consommée par les ménages", "name": "quantites_combustibles_liquides", "referring_variables": [ "combustibles_liquides_ticpe", "emissions_CO2_combustibles_liquides" ], "start_line_number": 9, "stop_line_number": 22, "value_type": "float" }