UNPKG

@leximpact/socio-fiscal-openfisca-json

Version:

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

313 lines (312 loc) 9.87 kB
{ "default_value": 0, "definition_period": "year", "dtype": "float32", "entity": "menage", "file_path": "openfisca_france_indirect_taxation/variables/consommation/emissions_co2.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": 86, "end_lineno": 2, "lineno": 2, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 34, "end_lineno": 2, "id": "quantite_combustibles_liquides", "lineno": 2 } ], "value": { "args": [ { "ast_class": "Constant", "col_offset": 44, "end_col_offset": 77, "end_lineno": 2, "lineno": 2, "value": "quantites_combustibles_liquides" }, { "ast_class": "Name", "col_offset": 79, "ctx": { "ast_class": "Load" }, "end_col_offset": 85, "end_lineno": 2, "id": "period", "lineno": 2 } ], "ast_class": "Call", "col_offset": 37, "end_col_offset": 86, "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": 110, "end_lineno": 4, "lineno": 3, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 36, "end_lineno": 3, "id": "emissions_combustibles_liquidies", "lineno": 3 } ], "value": { "ast_class": "Attribute", "attr": "CO2_combustibles_liquides", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 110, "end_lineno": 4, "lineno": 4, "value": { "ast_class": "Attribute", "attr": "energie_logement", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 84, "end_lineno": 4, "lineno": 4, "value": { "ast_class": "Attribute", "attr": "emissions_CO2", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 67, "end_lineno": 4, "lineno": 4, "value": { "ast_class": "Attribute", "attr": "imposition_indirecte", "col_offset": 8, "ctx": { "ast_class": "Load" }, "end_col_offset": 53, "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": 81, "end_lineno": 5, "lineno": 5, "targets": [ { "ast_class": "Name", "col_offset": 4, "ctx": { "ast_class": "Store" }, "end_col_offset": 13, "end_lineno": 5, "id": "emissions", "lineno": 5 } ], "value": { "ast_class": "BinOp", "col_offset": 16, "end_col_offset": 81, "end_lineno": 5, "left": { "ast_class": "Name", "col_offset": 16, "ctx": { "ast_class": "Load" }, "end_col_offset": 46, "end_lineno": 5, "id": "quantite_combustibles_liquides", "lineno": 5 }, "lineno": 5, "op": { "ast_class": "Mult" }, "right": { "ast_class": "Name", "col_offset": 49, "ctx": { "ast_class": "Load" }, "end_col_offset": 81, "end_lineno": 5, "id": "emissions_combustibles_liquidies", "lineno": 5 } } }, { "ast_class": "Return", "col_offset": 4, "end_col_offset": 20, "end_lineno": 7, "lineno": 7, "value": { "ast_class": "Name", "col_offset": 11, "ctx": { "ast_class": "Load" }, "end_col_offset": 20, "end_lineno": 7, "id": "emissions", "lineno": 7 } } ], "col_offset": 0, "decorator_list": [], "end_col_offset": 20, "end_lineno": 7, "lineno": 1, "name": "formula" }, "file_path": "openfisca_france_indirect_taxation/variables/consommation/emissions_co2.py", "parameters": [ "imposition_indirecte.emissions_CO2.energie_logement.CO2_combustibles_liquides" ], "source_code": "def formula(menage, period, parameters):\n quantite_combustibles_liquides = menage('quantites_combustibles_liquides', period)\n emissions_combustibles_liquidies = \\\n parameters(period.start).imposition_indirecte.emissions_CO2.energie_logement.CO2_combustibles_liquides\n emissions = quantite_combustibles_liquides * emissions_combustibles_liquidies\n\n return emissions\n", "start_line_number": 32, "stop_line_number": 39, "variables": [ "quantites_combustibles_liquides" ] } }, "json_type": "number", "label": "Emissions de CO2 des ménages via leur consommation de combustibles liquides, en kg de CO2", "name": "emissions_CO2_combustibles_liquides", "referring_variables": [ "emissions_CO2_energies_logement" ], "start_line_number": 27, "stop_line_number": 39, "unit": "currency", "value_type": "float" }