Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
leximpact-prepare-data
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 socio-fiscal
Budget
leximpact-prepare-data
Commits
cff5e661
Commit
cff5e661
authored
1 year ago
by
Chloé Lallemand
Browse files
Options
Downloads
Patches
Plain Diff
Add config_files_directory option in survey_scenario
parent
7d418f22
Branches
Branches containing commit
No related tags found
1 merge request
!120
Resolve "Nettoyage config pipeline"
Pipeline
#13005
failed
1 year ago
Stage: init
Stage: check
Stage: test
Stage: deploy-doc
Stage: pre-publish
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
leximpact_prepare_data/pipeline_survey_scenario.py
+5
-0
5 additions, 0 deletions
leximpact_prepare_data/pipeline_survey_scenario.py
with
5 additions
and
0 deletions
leximpact_prepare_data/pipeline_survey_scenario.py
+
5
−
0
View file @
cff5e661
...
...
@@ -9,6 +9,7 @@
from
openfisca_core.taxbenefitsystems
import
TaxBenefitSystem
from
openfisca_survey_manager.input_dataframe_generator
import
set_table_in_survey
from
openfisca_survey_manager
import
default_config_files_directory
from
leximpact_prepare_data.scenario_tools.helpers_survey_scenario
import
get_copules
...
...
@@ -50,6 +51,7 @@ class PipelineErfsSurveyScenario(LeximpactErfsSurveyScenario):
def
__init__
(
self
,
config_files_directory
:
str
=
default_config_files_directory
,
annee_donnees
:
int
=
2019
,
period
:
int
=
2023
,
rebuild_input_data
:
bool
=
False
,
...
...
@@ -80,6 +82,7 @@ def __init__(
)
super
().
__init__
(
config_files_directory
=
config_files_directory
,
annee_donnees
=
annee_donnees
,
period
=
period
,
rebuild_input_data
=
rebuild_input_data
,
...
...
@@ -296,6 +299,7 @@ def save_current_survey(
period
=
year
,
collection
=
collection
,
survey_name
=
survey_name
,
config_files_directory
=
self
.
data
[
"
config_files_directory
"
],
)
else
:
data_frame_by_entity
=
self
.
simulations
[
...
...
@@ -309,6 +313,7 @@ def save_current_survey(
period
=
period
,
collection
=
collection
,
survey_name
=
survey_name
,
config_files_directory
=
self
.
data
[
"
config_files_directory
"
],
)
def
custom_input_data_frame
(
self
,
input_data_frame
,
entity
=
None
,
**
kwargs
):
...
...
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