Skip to main content
Homepage
Explore
Search or go to…
/
Register
Sign in
Explore
Primary navigation
Project
leximpact-survey-scenario
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
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
Budget
leximpact-survey-scenario
Commits
ebcdcf04
Commit
ebcdcf04
authored
6 months ago
by
clallemand
Browse files
Options
Downloads
Patches
Plain Diff
ajoute start_computation_date
parent
d2bd79aa
No related branches found
No related tags found
1 merge request
!48
Mensualisation des revenus
Pipeline
#20694
passed
6 months ago
Status:
Stage: init
Status:
Stage: check
Status:
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
leximpact_survey_scenario/leximpact_survey_scenario.py
+10
-0
10 additions, 0 deletions
leximpact_survey_scenario/leximpact_survey_scenario.py
with
10 additions
and
0 deletions
leximpact_survey_scenario/leximpact_survey_scenario.py
+
10
−
0
View file @
ebcdcf04
...
@@ -91,6 +91,7 @@ class LeximpactErfsSurveyScenario(AbstractSurveyScenario):
...
@@ -91,6 +91,7 @@ class LeximpactErfsSurveyScenario(AbstractSurveyScenario):
computed_variables_to_dump
=
[],
computed_variables_to_dump
=
[],
run_custom_initialize
=
True
,
run_custom_initialize
=
True
,
monthly_incomes
=
False
,
monthly_incomes
=
False
,
start_computation_date
=
"
2022-01
"
,
# 1e mois des données qu'on a en input
):
):
"""
"""
Create a `LeximpactErfsSurveyScenario`
Create a `LeximpactErfsSurveyScenario`
...
@@ -115,6 +116,7 @@ class LeximpactErfsSurveyScenario(AbstractSurveyScenario):
...
@@ -115,6 +116,7 @@ class LeximpactErfsSurveyScenario(AbstractSurveyScenario):
self
.
period
=
period
self
.
period
=
period
self
.
computed_variables_to_dump
=
computed_variables_to_dump
self
.
computed_variables_to_dump
=
computed_variables_to_dump
self
.
run_custom_initialize
=
run_custom_initialize
self
.
run_custom_initialize
=
run_custom_initialize
self
.
start_computation_date
=
start_computation_date
if
dump
or
restore
:
if
dump
or
restore
:
assert
dump_directory
is
not
None
assert
dump_directory
is
not
None
...
@@ -226,6 +228,10 @@ class LeximpactErfsSurveyScenario(AbstractSurveyScenario):
...
@@ -226,6 +228,10 @@ class LeximpactErfsSurveyScenario(AbstractSurveyScenario):
dump
=
dump
,
dump
=
dump
,
memory_config
=
memory_config
,
memory_config
=
memory_config
,
)
)
for
key
in
self
.
simulations
.
keys
():
self
.
simulations
[
key
].
start_computation_date
=
self
.
start_computation_date
def
calibrate
(
def
calibrate
(
self
,
self
,
...
@@ -347,6 +353,9 @@ class LeximpactErfsSurveyScenario(AbstractSurveyScenario):
...
@@ -347,6 +353,9 @@ class LeximpactErfsSurveyScenario(AbstractSurveyScenario):
simulation
.
weight_variable_by_entity
=
self
.
weight_variable_by_entity
simulation
.
weight_variable_by_entity
=
self
.
weight_variable_by_entity
simulation
.
id_variable_by_entity_key
=
self
.
id_variable_by_entity_key
simulation
.
id_variable_by_entity_key
=
self
.
id_variable_by_entity_key
self
.
simulations
[
prefix
]
=
simulation
self
.
simulations
[
prefix
]
=
simulation
self
.
simulations
[
prefix
].
start_computation_date
=
self
.
start_computation_date
else
:
else
:
period
=
periods
.
period
(
self
.
annee_donnees
)
period
=
periods
.
period
(
self
.
annee_donnees
)
simulation
=
self
.
new_simulation
(
simulation
=
self
.
new_simulation
(
...
@@ -356,6 +365,7 @@ class LeximpactErfsSurveyScenario(AbstractSurveyScenario):
...
@@ -356,6 +365,7 @@ class LeximpactErfsSurveyScenario(AbstractSurveyScenario):
data
=
data
,
data
=
data
,
memory_config
=
memory_config
,
memory_config
=
memory_config
,
)
)
simulation
.
start_computation_date
=
self
.
start_computation_date
if
dump
and
prefix
!=
"
amendement
"
:
if
dump
and
prefix
!=
"
amendement
"
:
log
.
info
(
f
"
Dumping
{
prefix
}
simulation
"
)
log
.
info
(
f
"
Dumping
{
prefix
}
simulation
"
)
...
...
...
...
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