From 51f6fa7e95d3f03c4135cf3c2a1178fc0b89ba1e Mon Sep 17 00:00:00 2001 From: Thomas Guillet Date: Tue, 19 Nov 2024 11:54:19 +0100 Subject: [PATCH] Supprime les situations d'exemple --- .../situation_examples/__init__.py | 17 --------- .../situation_examples/couple.json | 37 ------------------- .../situation_examples/housing.json | 23 ------------ .../situation_examples/single.json | 17 --------- 4 files changed, 94 deletions(-) delete mode 100644 openfisca_nouvelle_caledonie/situation_examples/__init__.py delete mode 100644 openfisca_nouvelle_caledonie/situation_examples/couple.json delete mode 100644 openfisca_nouvelle_caledonie/situation_examples/housing.json delete mode 100644 openfisca_nouvelle_caledonie/situation_examples/single.json diff --git a/openfisca_nouvelle_caledonie/situation_examples/__init__.py b/openfisca_nouvelle_caledonie/situation_examples/__init__.py deleted file mode 100644 index 27ef68f..0000000 --- a/openfisca_nouvelle_caledonie/situation_examples/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -"""This file provides a function to load json example situations.""" - -import json -import os - -DIR_PATH = os.path.dirname(os.path.abspath(__file__)) - - -def parse(file_name): - """Load json example situations.""" - file_path = os.path.join(DIR_PATH, file_name) - with open(file_path, encoding="utf8") as file: - return json.loads(file.read()) - - -single = parse("single.json") -couple = parse("couple.json") diff --git a/openfisca_nouvelle_caledonie/situation_examples/couple.json b/openfisca_nouvelle_caledonie/situation_examples/couple.json deleted file mode 100644 index e04c75b..0000000 --- a/openfisca_nouvelle_caledonie/situation_examples/couple.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "persons": { - "Alicia": { - "birth": { - "ETERNITY": "1980-01-01" - }, - "salary": { - "2017-01": 4000 - }, - "disposable_income": { - "2017-01": null - } - }, - "Javier": { - "birth": { - "ETERNITY": "1984-01-01" - }, - "salary": { - "2017-01": 2500 - }, - "disposable_income": { - "2017-01": null - } - } - }, - "households": { - "_": { - "parents": ["Alicia", "Javier"], - "total_benefits": { - "2017-01": null - }, - "total_taxes": { - "2017-01": null - } - } - } -} diff --git a/openfisca_nouvelle_caledonie/situation_examples/housing.json b/openfisca_nouvelle_caledonie/situation_examples/housing.json deleted file mode 100644 index de039a4..0000000 --- a/openfisca_nouvelle_caledonie/situation_examples/housing.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "persons": { - "Alicia": { - "birth": { - "2017-01": null - }, - "disposable_income": { - "2017-01": null - } - } - }, - "households": { - "_": { - "parents": ["Alicia"], - "housing_tax": { - "2017": null - }, - "housing_occupancy_status": { - "2017-01": null - } - } - } -} \ No newline at end of file diff --git a/openfisca_nouvelle_caledonie/situation_examples/single.json b/openfisca_nouvelle_caledonie/situation_examples/single.json deleted file mode 100644 index c1ca2bc..0000000 --- a/openfisca_nouvelle_caledonie/situation_examples/single.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "persons": { - "Alicia": { - "birth": { - "2017-01": null - }, - "disposable_income": { - "2017-01": null - } - } - }, - "households": { - "_": { - "parents": ["Alicia"] - } - } -}