@openfisca/france-json
Version:
JSON & YAML data extracted from OpenFisca-France source code (parameters, variables, etc)
135 lines (134 loc) • 3.83 kB
JSON
{
"default_value": false,
"definition_period": "month",
"dtype": "bool_",
"entity": "individu",
"file_path": "openfisca_france/model/covid19/activite.py",
"formulas": {
"0001-01-01": {
"ast": {
"args": {
"args": [
{
"arg": "individu",
"ast_class": "arg",
"col_offset": 12,
"end_col_offset": 20,
"end_lineno": 1,
"lineno": 1
},
{
"arg": "period",
"ast_class": "arg",
"col_offset": 22,
"end_col_offset": 28,
"end_lineno": 1,
"lineno": 1
}
],
"ast_class": "arguments",
"defaults": [],
"kw_defaults": [],
"kwonlyargs": [],
"posonlyargs": []
},
"ast_class": "FunctionDef",
"body": [
{
"ast_class": "Return",
"col_offset": 4,
"end_col_offset": 51,
"end_lineno": 2,
"lineno": 2,
"value": {
"ast_class": "Compare",
"col_offset": 11,
"comparators": [
{
"ast_class": "Constant",
"col_offset": 50,
"end_col_offset": 51,
"end_lineno": 2,
"lineno": 2,
"value": 0
}
],
"end_col_offset": 51,
"end_lineno": 2,
"left": {
"args": [
{
"ast_class": "Constant",
"col_offset": 20,
"end_col_offset": 37,
"end_lineno": 2,
"lineno": 2,
"value": "salaire_de_base"
},
{
"ast_class": "Name",
"col_offset": 39,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 45,
"end_lineno": 2,
"id": "period",
"lineno": 2
}
],
"ast_class": "Call",
"col_offset": 11,
"end_col_offset": 46,
"end_lineno": 2,
"func": {
"ast_class": "Name",
"col_offset": 11,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 19,
"end_lineno": 2,
"id": "individu",
"lineno": 2
},
"keywords": [],
"lineno": 2
},
"lineno": 2,
"ops": [
{
"ast_class": "NotEq"
}
]
}
}
],
"col_offset": 0,
"decorator_list": [],
"end_col_offset": 51,
"end_lineno": 2,
"lineno": 1,
"name": "formula"
},
"file_path": "openfisca_france/model/covid19/activite.py",
"source_code": "def formula(individu, period):\n return individu('salaire_de_base', period) != 0\n",
"start_line_number": 53,
"stop_line_number": 55,
"variables": [
"salaire_de_base"
]
}
},
"is_period_size_independent": true,
"json_type": "boolean",
"label": "Eligibilité au dispositif du chômage partiel",
"name": "covid_activite_partielle_eligible",
"referring_variables": [
"covid_activite_partielle_montant"
],
"set_input": "set_input_dispatch_by_period",
"start_line_number": 46,
"stop_line_number": 55,
"value_type": "bool"
}