Skip to content
Snippets Groups Projects
Commit 9e247fa5 authored by Augustin Wenger's avatar Augustin Wenger
Browse files

Removes wprm from res_brut and nbreParts

parent 1d31685d
No related branches found
No related tags found
1 merge request!20Nbptr in results
......@@ -291,11 +291,15 @@ def compare(period: str, dictionnaire_simulations, compute_deciles=True):
else: # This only interests us for the castypes
# On arrondit les résultats des cas-types
dic_res_brut = impots_par_reforme.to_dict()
del dic_res_brut["wprm"]
for simu in dic_res_brut:
if simu != "wprm":
for cas_type in dic_res_brut[simu]:
dic_res_brut[simu][cas_type] = int(round(dic_res_brut[simu][cas_type]))
dic_nbptr = nbptr_par_reforme.to_dict()
del dic_nbptr["wprm"]
for simu in dic_nbptr:
if simu != "wprm":
for cas_type in dic_nbptr[simu]:
dic_nbptr[simu][cas_type] = dic_nbptr[simu][cas_type]
resultat = {"total": total, "res_brut": dic_res_brut, "nbreParts": dic_nbptr}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment