From b508f66d74a549243062fd3347ae10395dd1fd99 Mon Sep 17 00:00:00 2001 From: Mahdi Ben Jelloul Date: Thu, 14 Nov 2024 13:33:16 +0100 Subject: [PATCH] Clean --- openfisca_tunisia_pension/variables/data.py | 24 ++++++++------------- pyproject.toml | 2 +- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/openfisca_tunisia_pension/variables/data.py b/openfisca_tunisia_pension/variables/data.py index c2942d8..51a2ebc 100644 --- a/openfisca_tunisia_pension/variables/data.py +++ b/openfisca_tunisia_pension/variables/data.py @@ -2,19 +2,12 @@ from openfisca_tunisia_pension.entities import Individu -# raic -> raci -# Socio-economic data -# Donnée d'entrée de la simulation à fournir à partir d'une enquète ou -# à générer avec un générateur de cas type - - -class date_naissance(Variable): - value_type = date - default_value = date(1970, 1, 1) +class age(Variable): + value_type = int entity = Individu - label = 'Date de naissance' - definition_period = ETERNITY + label = 'Âge' + definition_period = YEAR class salaire(Variable): @@ -24,11 +17,12 @@ class salaire(Variable): definition_period = YEAR -class age(Variable): - value_type = int +class date_naissance(Variable): + value_type = date + default_value = date(1970, 1, 1) entity = Individu - label = 'Âge' - definition_period = YEAR + label = 'Date de naissance' + definition_period = ETERNITY class trimestres_valides(Variable): diff --git a/pyproject.toml b/pyproject.toml index 0c77b08..133cb48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "OpenFisca-Tunisia-Pension" -version = "2.0.0" +version = "2.0.1" description = "OpenFisca Rules as Code model for Tunisia pensions." readme = "README.md" keywords = ["microsimulation", "tax", "benefit", "pension", "rac", "rules-as-code", "tunisia"]