Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur de serialisation de certaines paramètres (API) #1360

Closed
bonjourmauko opened this issue Jul 16, 2019 · 0 comments · Fixed by openfisca/openfisca-core#900
Closed

Erreur de serialisation de certaines paramètres (API) #1360

bonjourmauko opened this issue Jul 16, 2019 · 0 comments · Fixed by openfisca/openfisca-core#900
Labels

Comments

@bonjourmauko
Copy link
Member

Le site https://fr.openfisca.org/legislation est down.

La raison, une erreur sur https://fr.openfisca.org/api/latest/spec.

Une inspection des logs nous montrent la chose suivante :

journalctl -u openfisca-web-api-fr-latest.service

Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]: TypeError: Object of type ndarray is not JSON serializable
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]: During handling of the above exception, another exception occurred:
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]: Traceback (most recent call last):
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:   File "/home/openfisca/virtualenvs/api-fr-latest/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 135, in handle
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:     self.handle_request(listener, req, client, addr)
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:   File "/home/openfisca/virtualenvs/api-fr-latest/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:     respiter = self.wsgi(environ, resp.start_response)
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:   File "/home/openfisca/virtualenvs/api-fr-latest/lib/python3.7/site-packages/flask/app.py", line 2463, in __call__
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:     return self.wsgi_app(environ, start_response)
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:   File "/home/openfisca/virtualenvs/api-fr-latest/lib/python3.7/site-packages/werkzeug/middleware/proxy_fix.py", line 228, in __call__
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:     return self.app(environ, start_response)
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:   File "/home/openfisca/virtualenvs/api-fr-latest/lib/python3.7/site-packages/flask/app.py", line 2449, in wsgi_app
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:     response = self.handle_exception(e)
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:   File "/home/openfisca/virtualenvs/api-fr-latest/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:     return cors_after_request(app.make_response(f(*args, **kwargs)))
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:   File "/home/openfisca/virtualenvs/api-fr-latest/lib/python3.7/site-packages/flask/app.py", line 1878, in handle_exception
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:     server_error = handler(server_error)
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:   File "/home/openfisca/virtualenvs/api-fr-latest/lib/python3.7/site-packages/openfisca_web_api/app.py", line 182, in internal_server_error
Jul 16 06:31:54 vps223769.ovh.net openfisca[8518]:     message = str(e.args[0])

Pour reproduire l'erreur, j'ai utilisé le script suivant :

from flask import Flask, jsonify
from openfisca_core.scripts import build_tax_benefit_system
from openfisca_web_api.loader import build_data


def trace():
    tax_benefit_system = build_tax_benefit_system("openfisca_france", None, None)
    data = build_data(tax_benefit_system)
    return data["openAPI_spec"]["definitions"]["Trace"]["example"]["trace"]


def acc(data, key):
    params = data[key]["parameters"]
    return [(key, param, params[param], type(params[param])) for param in params.keys()]


def serializable(value):
    try:
        jsonify({**value})
        return True
    except TypeError:
        return False


with Flask(__name__).app_context():
    data = trace()
    result = [acc(data, key) for key, _ in data.items() if not serializable(data[key])]

Ce qui nous donne la liste de paramètres dont les valeurs ne sont pas serialisables :

[[('aide_logement_loyer_plafond<2017-12>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-12-01>',
   array([51.54]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-12>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-12-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-12>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-12-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-12>',
   'prestations.al_param.parametre_n<2017-12-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_foyer_conventionne_plafond<2017-12>',
   'prestations.al_plafonds_logement_foyer.conventionne<2017-12-01>',
   array([63.68]),
   numpy.ndarray)],
 [('aides_logement_foyer_plafond_mensualite<2017-12>',
   'prestations.al_plafonds_logement_foyer_crous.rehabilitee<2017-12-01>',
   array([261.72]),
   numpy.ndarray),
  ('aides_logement_foyer_plafond_mensualite<2017-12>',
   'prestations.al_plafonds_logement_foyer_crous.non_rehabilitee<2017-12-01>',
   array([129.68]),
   numpy.ndarray),
  ('aides_logement_foyer_plafond_mensualite<2017-12>',
   'prestations.al_plafonds_logement_foyer.personne_agee<2017-12-01>',
   array([317.47]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-12>',
   'prestations.al_plafonds_accession<2017-12-01>',
   array([37.6]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-12>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-12-01>',
   array([10.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-12>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-12-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-12>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-12-01>',
   5,
   int)],
 [('aide_logement_loyer_plafond<2017-11>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-11-01>',
   array([51.54]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-11>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-11-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-11>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-11-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-11>',
   'prestations.al_param.parametre_n<2017-11-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_foyer_conventionne_plafond<2017-11>',
   'prestations.al_plafonds_logement_foyer.conventionne<2017-11-01>',
   array([63.68]),
   numpy.ndarray)],
 [('aides_logement_foyer_plafond_mensualite<2017-11>',
   'prestations.al_plafonds_logement_foyer_crous.rehabilitee<2017-11-01>',
   array([261.72]),
   numpy.ndarray),
  ('aides_logement_foyer_plafond_mensualite<2017-11>',
   'prestations.al_plafonds_logement_foyer_crous.non_rehabilitee<2017-11-01>',
   array([129.68]),
   numpy.ndarray),
  ('aides_logement_foyer_plafond_mensualite<2017-11>',
   'prestations.al_plafonds_logement_foyer.personne_agee<2017-11-01>',
   array([317.47]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-11>',
   'prestations.al_plafonds_accession<2017-11-01>',
   array([37.6]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-11>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-11-01>',
   array([10.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-11>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-11-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-11>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-11-01>',
   5,
   int)],
 [('aide_logement_loyer_plafond<2017-10>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-10-01>',
   array([51.54]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-10>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-10-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-10>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-10-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-10>',
   'prestations.al_param.parametre_n<2017-10-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_foyer_conventionne_plafond<2017-10>',
   'prestations.al_plafonds_logement_foyer.conventionne<2017-10-01>',
   array([63.68]),
   numpy.ndarray)],
 [('aides_logement_foyer_plafond_mensualite<2017-10>',
   'prestations.al_plafonds_logement_foyer_crous.rehabilitee<2017-10-01>',
   array([261.72]),
   numpy.ndarray),
  ('aides_logement_foyer_plafond_mensualite<2017-10>',
   'prestations.al_plafonds_logement_foyer_crous.non_rehabilitee<2017-10-01>',
   array([129.68]),
   numpy.ndarray),
  ('aides_logement_foyer_plafond_mensualite<2017-10>',
   'prestations.al_plafonds_logement_foyer.personne_agee<2017-10-01>',
   array([317.47]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-10>',
   'prestations.al_plafonds_accession<2017-10-01>',
   array([37.6]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-10>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-10-01>',
   array([10.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-10>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-10-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-10>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-10-01>',
   5,
   int)],
 [('aide_logement_loyer_plafond<2017-09>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-09-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-09>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-09-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-09>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-09-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-09>',
   'prestations.al_param.parametre_n<2017-09-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-09>',
   'prestations.al_plafonds_accession<2017-09-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-09>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-09-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-09>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-09-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-09>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-09-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2017-08>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-08-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-08>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-08-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-08>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-08-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-08>',
   'prestations.al_param.parametre_n<2017-08-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-08>',
   'prestations.al_plafonds_accession<2017-08-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-08>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-08-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-08>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-08-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-08>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-08-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2017-07>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-07-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-07>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-07-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-07>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-07-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-07>',
   'prestations.al_param.parametre_n<2017-07-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-07>',
   'prestations.al_plafonds_accession<2017-07-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-07>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-07-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-07>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-07-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-07>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-07-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2017-06>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-06-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-06>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-06-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-06>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-06-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-06>',
   'prestations.al_param.parametre_n<2017-06-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-06>',
   'prestations.al_plafonds_accession<2017-06-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-06>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-06-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-06>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-06-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-06>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-06-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2017-05>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-05-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-05>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-05-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-05>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-05-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-05>',
   'prestations.al_param.parametre_n<2017-05-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-05>',
   'prestations.al_plafonds_accession<2017-05-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-05>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-05-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-05>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-05-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-05>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-05-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2017-04>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-04-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-04>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-04-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-04>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-04-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-04>',
   'prestations.al_param.parametre_n<2017-04-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-04>',
   'prestations.al_plafonds_accession<2017-04-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-04>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-04-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-04>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-04-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-04>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-04-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2017-03>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-03-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-03>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-03-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-03>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-03-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-03>',
   'prestations.al_param.parametre_n<2017-03-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-03>',
   'prestations.al_plafonds_accession<2017-03-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-03>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-03-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-03>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-03-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-03>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-03-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2017-02>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-02-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-02>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-02-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-02>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-02-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-02>',
   'prestations.al_param.parametre_n<2017-02-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-02>',
   'prestations.al_plafonds_accession<2017-02-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-02>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-02-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-02>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-02-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-02>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-02-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2017-01>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-01-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2017-01>',
   'prestations.aides_logement.loyers_plafond.colocation<2017-01-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2017-01>',
   'prestations.aides_logement.loyers_plafond.chambre<2017-01-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2017-01>',
   'prestations.al_param.parametre_n<2017-01-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2017-01>',
   'prestations.al_plafonds_accession<2017-01-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2017-01>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2017-01-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2017-01>',
   'prestations.aides_logement.loyers_plafond.par_zone<2017-01-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2017-01>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2017-01-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2016-12>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-12-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-12>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-12-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-12>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-12-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2016-12>',
   'prestations.al_param.parametre_n<2016-12-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-12>',
   'prestations.al_plafonds_accession<2016-12-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2016-12>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-12-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2016-12>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-12-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2016-12>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2016-12-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2016-11>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-11-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-11>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-11-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-11>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-11-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2016-11>',
   'prestations.al_param.parametre_n<2016-11-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-11>',
   'prestations.al_plafonds_accession<2016-11-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2016-11>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-11-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2016-11>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-11-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2016-11>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2016-11-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2016-10>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-10-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-10>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-10-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-10>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-10-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2016-10>',
   'prestations.al_param.parametre_n<2016-10-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-10>',
   'prestations.al_plafonds_accession<2016-10-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2016-10>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-10-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2016-10>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-10-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2016-10>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2016-10-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2016-09>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-09-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-09>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-09-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-09>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-09-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2016-09>',
   'prestations.al_param.parametre_n<2016-09-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-09>',
   'prestations.al_plafonds_accession<2016-09-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2016-09>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-09-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2016-09>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-09-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2016-09>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2016-09-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2016-08>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-08-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-08>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-08-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-08>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-08-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2016-08>',
   'prestations.al_param.parametre_n<2016-08-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-08>',
   'prestations.al_plafonds_accession<2016-08-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2016-08>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-08-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2016-08>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-08-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2016-08>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2016-08-01>',
   0,
   int)],
 [('aide_logement_loyer_plafond<2016-07>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-07-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-07>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-07-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-07>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-07-01>',
   0.9,
   float)],
 [('aides_logement_nb_part<2016-07>',
   'prestations.al_param.parametre_n<2016-07-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-07>',
   'prestations.al_plafonds_accession<2016-07-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_montant_brut_avant_degressivite<2016-07>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-07-01>',
   array([15.]),
   numpy.ndarray)],
 [('aide_logement_montant_brut<2016-07>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-07-01>',
   array([3.1]),
   numpy.ndarray),
  ('aide_logement_montant_brut<2016-07>',
   'prestations.aides_logement.autres.abattement_forfaitaire<2016-07-01>',
   0,
   int)],
 [('aides_logement_nb_part<2016-06>',
   'prestations.al_param.parametre_n<2016-06-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-06>',
   'prestations.al_plafonds_accession<2016-06-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_loyer_plafond<2016-06>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-06-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-06>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-06-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-06>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-06-01>',
   0.9,
   float)],
 [('aide_logement_montant_brut_avant_degressivite<2016-06>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-06-01>',
   array([15.]),
   numpy.ndarray)],
 [('aides_logement_nb_part<2016-05>',
   'prestations.al_param.parametre_n<2016-05-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-05>',
   'prestations.al_plafonds_accession<2016-05-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_loyer_plafond<2016-05>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-05-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-05>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-05-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-05>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-05-01>',
   0.9,
   float)],
 [('aide_logement_montant_brut_avant_degressivite<2016-05>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-05-01>',
   array([15.]),
   numpy.ndarray)],
 [('aides_logement_nb_part<2016-04>',
   'prestations.al_param.parametre_n<2016-04-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-04>',
   'prestations.al_plafonds_accession<2016-04-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_loyer_plafond<2016-04>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-04-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-04>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-04-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-04>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-04-01>',
   0.9,
   float)],
 [('aide_logement_montant_brut_avant_degressivite<2016-04>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-04-01>',
   array([15.]),
   numpy.ndarray)],
 [('aides_logement_nb_part<2016-03>',
   'prestations.al_param.parametre_n<2016-03-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-03>',
   'prestations.al_plafonds_accession<2016-03-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_loyer_plafond<2016-03>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-03-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-03>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-03-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-03>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-03-01>',
   0.9,
   float)],
 [('aide_logement_montant_brut_avant_degressivite<2016-03>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-03-01>',
   array([15.]),
   numpy.ndarray)],
 [('aides_logement_nb_part<2016-02>',
   'prestations.al_param.parametre_n<2016-02-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-02>',
   'prestations.al_plafonds_accession<2016-02-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_loyer_plafond<2016-02>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-02-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-02>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-02-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-02>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-02-01>',
   0.9,
   float)],
 [('aide_logement_montant_brut_avant_degressivite<2016-02>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-02-01>',
   array([15.]),
   numpy.ndarray)],
 [('aides_logement_nb_part<2016-01>',
   'prestations.al_param.parametre_n<2016-01-01>',
   array([0.5]),
   numpy.ndarray)],
 [('aides_logement_primo_accedant_plafond_mensualite<2016-01>',
   'prestations.al_plafonds_accession<2016-01-01>',
   array([37.32]),
   numpy.ndarray)],
 [('aide_logement_loyer_plafond<2016-01>',
   'prestations.aides_logement.loyers_plafond.par_zone<2016-01-01>',
   array([51.16]),
   numpy.ndarray),
  ('aide_logement_loyer_plafond<2016-01>',
   'prestations.aides_logement.loyers_plafond.colocation<2016-01-01>',
   0.75,
   float),
  ('aide_logement_loyer_plafond<2016-01>',
   'prestations.aides_logement.loyers_plafond.chambre<2016-01-01>',
   0.9,
   float)],
 [('aide_logement_montant_brut_avant_degressivite<2016-01>',
   'prestations.aides_logement.al_min.montant_min_mensuel.montant_min_apl_al<2016-01-01>',
   array([15.]),
   numpy.ndarray)]]

Probablement lié à #1359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant