Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
leximpact-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur dotations aux communes
leximpact-server
Commits
9e247fa5
Commit
9e247fa5
authored
Jun 24, 2020
by
Augustin Wenger
Browse files
Options
Downloads
Patches
Plain Diff
Removes wprm from res_brut and nbreParts
parent
1d31685d
No related branches found
No related tags found
1 merge request
!20
Nbptr in results
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Simulation_engine/simulate_pop_from_reform.py
+8
-4
8 additions, 4 deletions
Simulation_engine/simulate_pop_from_reform.py
with
8 additions
and
4 deletions
Simulation_engine/simulate_pop_from_reform.py
+
8
−
4
View file @
9e247fa5
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment