Skip to main content
Sign in
Snippets Groups Projects
Commit 3def7604 authored by cgl's avatar cgl
Browse files

ajoute valeur par défaut pipeline

parent 1dbc650a
No related branches found
No related tags found
1 merge request!156Erf fpr 2022
Pipeline #22065 failed
......@@ -9,6 +9,10 @@
import pandas as pd
from openfisca_survey_manager.input_dataframe_generator import set_table_in_survey
DEFAULT_ANNEE_ERFS = 2022
DEFAULT_ANNEE_POTE = 2022
DEFAULT_ANNEE_CALCUL = 2025
config = Configuration(project_folder="leximpact-prepare-data")
aggregates_path = config.get("AGREGATS_PATH")
log.debug("Le logger leximpact_common_python_libraries.logger fonctionne !")
......@@ -17,7 +21,12 @@
)
def run_pipeline(annee_erfs, annee_pote, annee_de_calcul, mensualisation):
def run_pipeline(
annee_erfs=DEFAULT_ANNEE_ERFS,
annee_pote=DEFAULT_ANNEE_POTE,
annee_de_calcul=DEFAULT_ANNEE_CALCUL,
mensualisation=True,
):
log.debug("Create FranceTaxBenefitSystem")
# Instanciation du scenario
......@@ -122,18 +131,23 @@ def run_pipeline(annee_erfs, annee_pote, annee_de_calcul, mensualisation):
@click.option(
"-erfs",
"--annee_erfs",
default=2022,
default=DEFAULT_ANNEE_ERFS,
help="ERFS-FPR year",
show_default=True,
type=int,
)
@click.option(
"-pote", "--annee_pote", default=2022, help="POTE year", show_default=True, type=int
"-pote",
"--annee_pote",
default=DEFAULT_ANNEE_POTE,
help="POTE year",
show_default=True,
type=int,
)
@click.option(
"-calcul",
"--annee_de_calcul",
default=2025,
default=DEFAULT_ANNEE_CALCUL,
help="POTE year",
show_default=True,
type=int,
......@@ -141,7 +155,7 @@ def run_pipeline(annee_erfs, annee_pote, annee_de_calcul, mensualisation):
@click.option(
"-mensualisation",
"--mensualisation",
default=False,
default=True,
help="Mensualisation des revenus",
show_default=True,
type=bool,
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment