{
  "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": 99,
            "end_lineno": 3,
            "lineno": 2,
            "targets": [
              {
                "ast_class": "Name",
                "col_offset": 4,
                "ctx": {
                  "ast_class": "Store"
                },
                "end_col_offset": 18,
                "end_lineno": 2,
                "id": "tarif_fixe_gaz",
                "lineno": 2
              }
            ],
            "value": {
              "ast_class": "Attribute",
              "attr": "b2i_30000",
              "col_offset": 8,
              "ctx": {
                "ast_class": "Load"
              },
              "end_col_offset": 99,
              "end_lineno": 3,
              "lineno": 3,
              "value": {
                "ast_class": "Attribute",
                "attr": "tarif_fixe_gdf_ttc",
                "col_offset": 8,
                "ctx": {
                  "ast_class": "Load"
                },
                "end_col_offset": 89,
                "end_lineno": 3,
                "lineno": 3,
                "value": {
                  "ast_class": "Attribute",
                  "attr": "tarifs_reglementes_gdf",
                  "col_offset": 8,
                  "ctx": {
                    "ast_class": "Load"
                  },
                  "end_col_offset": 70,
                  "end_lineno": 3,
                  "lineno": 3,
                  "value": {
                    "ast_class": "Attribute",
                    "attr": "tarifs_energie",
                    "col_offset": 8,
                    "ctx": {
                      "ast_class": "Load"
                    },
                    "end_col_offset": 47,
                    "end_lineno": 3,
                    "lineno": 3,
                    "value": {
                      "args": [
                        {
                          "ast_class": "Attribute",
                          "attr": "start",
                          "col_offset": 19,
                          "ctx": {
                            "ast_class": "Load"
                          },
                          "end_col_offset": 31,
                          "end_lineno": 3,
                          "lineno": 3,
                          "value": {
                            "ast_class": "Name",
                            "col_offset": 19,
                            "ctx": {
                              "ast_class": "Load"
                            },
                            "end_col_offset": 25,
                            "end_lineno": 3,
                            "id": "period",
                            "lineno": 3
                          }
                        }
                      ],
                      "ast_class": "Call",
                      "col_offset": 8,
                      "end_col_offset": 32,
                      "end_lineno": 3,
                      "func": {
                        "ast_class": "Name",
                        "col_offset": 8,
                        "ctx": {
                          "ast_class": "Load"
                        },
                        "end_col_offset": 18,
                        "end_lineno": 3,
                        "id": "parameters",
                        "lineno": 3
                      },
                      "keywords": [],
                      "lineno": 3
                    }
                  }
                }
              }
            }
          },
          {
            "ast_class": "Assign",
            "col_offset": 4,
            "end_col_offset": 55,
            "end_lineno": 4,
            "lineno": 4,
            "targets": [
              {
                "ast_class": "Name",
                "col_offset": 4,
                "ctx": {
                  "ast_class": "Store"
                },
                "end_col_offset": 16,
                "end_lineno": 4,
                "id": "depenses_gaz",
                "lineno": 4
              }
            ],
            "value": {
              "args": [
                {
                  "ast_class": "Constant",
                  "col_offset": 26,
                  "end_col_offset": 46,
                  "end_lineno": 4,
                  "lineno": 4,
                  "value": "depenses_gaz_ville"
                },
                {
                  "ast_class": "Name",
                  "col_offset": 48,
                  "ctx": {
                    "ast_class": "Load"
                  },
                  "end_col_offset": 54,
                  "end_lineno": 4,
                  "id": "period",
                  "lineno": 4
                }
              ],
              "ast_class": "Call",
              "col_offset": 19,
              "end_col_offset": 55,
              "end_lineno": 4,
              "func": {
                "ast_class": "Name",
                "col_offset": 19,
                "ctx": {
                  "ast_class": "Load"
                },
                "end_col_offset": 25,
                "end_lineno": 4,
                "id": "menage",
                "lineno": 4
              },
              "keywords": [],
              "lineno": 4
            }
          },
          {
            "ast_class": "Assign",
            "col_offset": 4,
            "end_col_offset": 58,
            "end_lineno": 5,
            "lineno": 5,
            "targets": [
              {
                "ast_class": "Name",
                "col_offset": 4,
                "ctx": {
                  "ast_class": "Store"
                },
                "end_col_offset": 26,
                "end_lineno": 5,
                "id": "depenses_gaz_variables",
                "lineno": 5
              }
            ],
            "value": {
              "ast_class": "BinOp",
              "col_offset": 29,
              "end_col_offset": 58,
              "end_lineno": 5,
              "left": {
                "ast_class": "Name",
                "col_offset": 29,
                "ctx": {
                  "ast_class": "Load"
                },
                "end_col_offset": 41,
                "end_lineno": 5,
                "id": "depenses_gaz",
                "lineno": 5
              },
              "lineno": 5,
              "op": {
                "ast_class": "Sub"
              },
              "right": {
                "ast_class": "Name",
                "col_offset": 44,
                "ctx": {
                  "ast_class": "Load"
                },
                "end_col_offset": 58,
                "end_lineno": 5,
                "id": "tarif_fixe_gaz",
                "lineno": 5
              }
            }
          },
          {
            "ast_class": "Assign",
            "col_offset": 4,
            "end_col_offset": 109,
            "end_lineno": 7,
            "lineno": 6,
            "targets": [
              {
                "ast_class": "Name",
                "col_offset": 4,
                "ctx": {
                  "ast_class": "Store"
                },
                "end_col_offset": 21,
                "end_lineno": 6,
                "id": "prix_unitaire_gaz",
                "lineno": 6
              }
            ],
            "value": {
              "ast_class": "Attribute",
              "attr": "prix_kwh_b2i_ttc",
              "col_offset": 8,
              "ctx": {
                "ast_class": "Load"
              },
              "end_col_offset": 109,
              "end_lineno": 7,
              "lineno": 7,
              "value": {
                "ast_class": "Attribute",
                "attr": "prix_unitaire_gdf_ttc",
                "col_offset": 8,
                "ctx": {
                  "ast_class": "Load"
                },
                "end_col_offset": 92,
                "end_lineno": 7,
                "lineno": 7,
                "value": {
                  "ast_class": "Attribute",
                  "attr": "tarifs_reglementes_gdf",
                  "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": 61,
            "end_lineno": 8,
            "lineno": 8,
            "targets": [
              {
                "ast_class": "Name",
                "col_offset": 4,
                "ctx": {
                  "ast_class": "Store"
                },
                "end_col_offset": 16,
                "end_lineno": 8,
                "id": "quantite_gaz",
                "lineno": 8
              }
            ],
            "value": {
              "ast_class": "BinOp",
              "col_offset": 19,
              "end_col_offset": 61,
              "end_lineno": 8,
              "left": {
                "ast_class": "Name",
                "col_offset": 19,
                "ctx": {
                  "ast_class": "Load"
                },
                "end_col_offset": 41,
                "end_lineno": 8,
                "id": "depenses_gaz_variables",
                "lineno": 8
              },
              "lineno": 8,
              "op": {
                "ast_class": "Div"
              },
              "right": {
                "ast_class": "Name",
                "col_offset": 44,
                "ctx": {
                  "ast_class": "Load"
                },
                "end_col_offset": 61,
                "end_lineno": 8,
                "id": "prix_unitaire_gaz",
                "lineno": 8
              }
            }
          },
          {
            "ast_class": "Return",
            "col_offset": 4,
            "end_col_offset": 23,
            "end_lineno": 10,
            "lineno": 10,
            "value": {
              "ast_class": "Name",
              "col_offset": 11,
              "ctx": {
                "ast_class": "Load"
              },
              "end_col_offset": 23,
              "end_lineno": 10,
              "id": "quantite_gaz",
              "lineno": 10
            }
          }
        ],
        "col_offset": 0,
        "decorator_list": [],
        "end_col_offset": 23,
        "end_lineno": 10,
        "lineno": 1,
        "name": "formula"
      },
      "file_path": "openfisca_france_indirect_taxation/variables/consommation/quantites_energie.py",
      "parameters": [
        "tarifs_energie.tarifs_reglementes_gdf.prix_unitaire_gdf_ttc.prix_kwh_b2i_ttc",
        "tarifs_energie.tarifs_reglementes_gdf.tarif_fixe_gdf_ttc.b2i_30000"
      ],
      "source_code": "def formula(menage, period, parameters):\n    tarif_fixe_gaz = \\\n        parameters(period.start).tarifs_energie.tarifs_reglementes_gdf.tarif_fixe_gdf_ttc.b2i_30000\n    depenses_gaz = menage('depenses_gaz_ville', period)\n    depenses_gaz_variables = depenses_gaz - tarif_fixe_gaz\n    prix_unitaire_gaz = \\\n        parameters(period.start).tarifs_energie.tarifs_reglementes_gdf.prix_unitaire_gdf_ttc.prix_kwh_b2i_ttc\n    quantite_gaz = depenses_gaz_variables / prix_unitaire_gaz\n\n    return quantite_gaz\n",
      "start_line_number": 228,
      "stop_line_number": 238,
      "variables": [
        "depenses_gaz_ville"
      ]
    }
  },
  "json_type": "number",
  "label": "Quantité de gaz (en kWh) consommée par les ménages s'ils ont souscrit au contrat b2i",
  "name": "quantites_gaz_contrat_b2i",
  "referring_variables": [
    "depenses_gaz_prix_unitaire",
    "depenses_gaz_tarif_fixe",
    "quantites_gaz_contrat_optimal"
  ],
  "start_line_number": 223,
  "stop_line_number": 238,
  "value_type": "float"
}
