Restore Python API

This commit is contained in:
Denis Merigoux 2023-04-04 17:37:41 +02:00
parent d63958d7da
commit 1ee8d3923b
No known key found for this signature in database
GPG Key ID: EE99DCFA365C3EE3
5 changed files with 13364 additions and 14509 deletions

View File

@ -183,7 +183,7 @@ function run_computation_AL(log) {
try { try {
run_computation_AF(false); run_computation_AF(false);
// run_computation_AL(false); run_computation_AL(false);
} catch (error) { } catch (error) {
console.log(error[2]); console.log(error[2]);
} }

View File

@ -43,8 +43,6 @@ def call_aides_logement() -> float:
date_naissance_demandeur=date(1992, 1, 1), date_naissance_demandeur=date(1992, 1, 1),
nationalite_demandeur=Nationalite( nationalite_demandeur=Nationalite(
code=Nationalite_Code.Francaise, value=Unit()), code=Nationalite_Code.Francaise, value=Unit()),
patrimoine_produisant_revenu=0,
patrimoine_ne_produisant_pas_revenu=0,
personne_hebergee_centre_soins=False, personne_hebergee_centre_soins=False,
personne_rattache_foyer_fiscal_parent_ifi=False, personne_rattache_foyer_fiscal_parent_ifi=False,
nombre_autres_occupants_logement_hors_menage=0, nombre_autres_occupants_logement_hors_menage=0,
@ -54,7 +52,6 @@ def call_aides_logement() -> float:
date_mariage=None, date_mariage=None,
prestations_recues=[], prestations_recues=[],
residence_principale=True, residence_principale=True,
logement_est_maison_de_retraite=False,
surface_logement_m_carres=65, surface_logement_m_carres=65,
zone=ZoneDHabitation_Code.Zone2, zone=ZoneDHabitation_Code.Zone2,
parts_logement_propriete_famille=None, parts_logement_propriete_famille=None,

File diff suppressed because it is too large Load Diff

View File

@ -101,35 +101,6 @@ class VersementAllocations:
def __str__(self) -> str: def __str__(self) -> str:
return "{}({})".format(self.code, self.value) return "{}({})".format(self.code, self.value)
class ElementPrestationsFamiliales_Code(Enum):
PrestationAccueilJeuneEnfant = 0
AllocationsFamiliales = 1
ComplementFamilial = 2
AllocationLogement = 3
AllocationEducationEnfantHandicape = 4
AllocationSoutienFamilial = 5
AllocationRentreeScolaire = 6
AllocationJournalierePresenceParentale = 7
class ElementPrestationsFamiliales:
def __init__(self, code: ElementPrestationsFamiliales_Code, value: Any) -> None:
self.code = code
self.value = value
def __eq__(self, other: object) -> bool:
if isinstance(other, ElementPrestationsFamiliales):
return self.code == other.code and self.value == other.value
else:
return False
def __ne__(self, other: object) -> bool:
return not (self == other)
def __str__(self) -> str:
return "{}({})".format(self.code, self.value)
class Collectivite_Code(Enum): class Collectivite_Code(Enum):
Guadeloupe = 0 Guadeloupe = 0
Guyane = 1 Guyane = 1
@ -176,22 +147,6 @@ class AllocationFamilialesAvril2008:
def __str__(self) -> str: def __str__(self) -> str:
return "AllocationFamilialesAvril2008(age_minimum_alinea_1_l521_3={})".format(self.age_minimum_alinea_1_l521_3) return "AllocationFamilialesAvril2008(age_minimum_alinea_1_l521_3={})".format(self.age_minimum_alinea_1_l521_3)
class AllocationsFamiliales:
def __init__(self, montant_verse: Money) -> None:
self.montant_verse = montant_verse
def __eq__(self, other: object) -> bool:
if isinstance(other, AllocationsFamiliales):
return (self.montant_verse == other.montant_verse)
else:
return False
def __ne__(self, other: object) -> bool:
return not (self == other)
def __str__(self) -> str:
return "AllocationsFamiliales(montant_verse={})".format(self.montant_verse)
class VerificationAgeInferieurOuEgalA: class VerificationAgeInferieurOuEgalA:
def __init__(self, est_inferieur_ou_egal: bool) -> None: def __init__(self, est_inferieur_ou_egal: bool) -> None:
self.est_inferieur_ou_egal = est_inferieur_ou_egal self.est_inferieur_ou_egal = est_inferieur_ou_egal
@ -334,6 +289,25 @@ class Enfant:
self.a_deja_ouvert_droit_aux_allocations_familiales, self.a_deja_ouvert_droit_aux_allocations_familiales,
self.beneficie_titre_personnel_aide_personnelle_logement) self.beneficie_titre_personnel_aide_personnelle_logement)
class AllocationsFamiliales:
def __init__(self, versement: Callable[[Enfant], VersementAllocations], montant_verse: Money) -> None:
self.versement = versement
self.montant_verse = montant_verse
def __eq__(self, other: object) -> bool:
if isinstance(other, AllocationsFamiliales):
return (self.versement == other.versement and
self.montant_verse == other.montant_verse)
else:
return False
def __ne__(self, other: object) -> bool:
return not (self == other)
def __str__(self) -> str:
return "AllocationsFamiliales(versement={},montant_verse={})".format(self.versement,
self.montant_verse)
class EnfantLePlusAge: class EnfantLePlusAge:
def __init__(self, le_plus_age: Enfant) -> None: def __init__(self, le_plus_age: Enfant) -> None:
self.le_plus_age = le_plus_age self.le_plus_age = le_plus_age
@ -375,15 +349,13 @@ class PrestationsFamiliales:
self.regime_outre_mer_l751_1) self.regime_outre_mer_l751_1)
class PrestationsFamilialesIn: class PrestationsFamilialesIn:
def __init__(self, date_courante_in: Date, prestation_courante_in: ElementPrestationsFamiliales, residence_in: Collectivite) -> None: def __init__(self, date_courante_in: Date, residence_in: Collectivite) -> None:
self.date_courante_in = date_courante_in self.date_courante_in = date_courante_in
self.prestation_courante_in = prestation_courante_in
self.residence_in = residence_in self.residence_in = residence_in
def __eq__(self, other: object) -> bool: def __eq__(self, other: object) -> bool:
if isinstance(other, PrestationsFamilialesIn): if isinstance(other, PrestationsFamilialesIn):
return (self.date_courante_in == other.date_courante_in and return (self.date_courante_in == other.date_courante_in and
self.prestation_courante_in == other.prestation_courante_in and
self.residence_in == other.residence_in) self.residence_in == other.residence_in)
else: else:
return False return False
@ -392,8 +364,8 @@ class PrestationsFamilialesIn:
return not (self == other) return not (self == other)
def __str__(self) -> str: def __str__(self) -> str:
return "PrestationsFamilialesIn(date_courante_in={},prestation_courante_in={},residence_in={})".format(self.date_courante_in, return "PrestationsFamilialesIn(date_courante_in={},residence_in={})".format(self.date_courante_in,
self.prestation_courante_in, self.residence_in) self.residence_in)
class AllocationFamilialesAvril2008In: class AllocationFamilialesAvril2008In:
def __init__(self, ) -> None: def __init__(self, ) -> None:
@ -577,8 +549,8 @@ def allocation_familiales_avril2008(allocation_familiales_avril2008_in:Allocatio
except EmptyError: except EmptyError:
temp_age_minimum_alinea_1_l521_3 = dead_value temp_age_minimum_alinea_1_l521_3 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=76, start_column=12, start_line=66, start_column=12,
end_line=76, end_column=39, end_line=66, end_column=39,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -608,8 +580,8 @@ def enfant_le_plus_age(enfant_le_plus_age_in:EnfantLePlusAgeIn):
except EmptyError: except EmptyError:
temp_le_plus_age_1 = dead_value temp_le_plus_age_1 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=80, start_column=12, start_line=70, start_column=12,
end_line=80, end_column=23, end_line=70, end_column=23,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -955,15 +927,14 @@ def base_mensuelle_allocations_familiales(base_mensuelle_allocations_familiales_
def prestations_familiales(prestations_familiales_in:PrestationsFamilialesIn): def prestations_familiales(prestations_familiales_in:PrestationsFamilialesIn):
date_courante_4 = prestations_familiales_in.date_courante_in date_courante_4 = prestations_familiales_in.date_courante_in
prestation_courante = prestations_familiales_in.prestation_courante_in
residence_1 = prestations_familiales_in.residence_in residence_1 = prestations_familiales_in.residence_in
try: try:
temp_age_l512_3_2 = duration_of_numbers(20,0,0) temp_age_l512_3_2 = duration_of_numbers(20,0,0)
except EmptyError: except EmptyError:
temp_age_l512_3_2 = dead_value temp_age_l512_3_2 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=60, start_column=12, start_line=51, start_column=12,
end_line=60, end_column=24, end_line=51, end_column=24,
law_headings=["Prestations familiales", law_headings=["Prestations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -973,8 +944,8 @@ def prestations_familiales(prestations_familiales_in:PrestationsFamilialesIn):
except EmptyError: except EmptyError:
temp_smic_dot_date_courante = dead_value temp_smic_dot_date_courante = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=69, start_column=14, start_line=59, start_column=14,
end_line=69, end_column=32, end_line=59, end_column=32,
law_headings=["Prestations familiales", law_headings=["Prestations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -984,8 +955,8 @@ def prestations_familiales(prestations_familiales_in:PrestationsFamilialesIn):
except EmptyError: except EmptyError:
temp_smic_dot_residence = dead_value temp_smic_dot_residence = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=68, start_column=14, start_line=58, start_column=14,
end_line=68, end_column=28, end_line=58, end_column=28,
law_headings=["Prestations familiales", law_headings=["Prestations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1014,8 +985,8 @@ def prestations_familiales(prestations_familiales_in:PrestationsFamilialesIn):
except EmptyError: except EmptyError:
temp_regime_outre_mer_l751_1 = dead_value temp_regime_outre_mer_l751_1 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=61, start_column=12, start_line=52, start_column=12,
end_line=61, end_column=35, end_line=52, end_column=35,
law_headings=["Prestations familiales", law_headings=["Prestations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1034,8 +1005,8 @@ def prestations_familiales(prestations_familiales_in:PrestationsFamilialesIn):
except EmptyError: except EmptyError:
temp_plafond_l512_3_2 = dead_value temp_plafond_l512_3_2 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=59, start_column=11, start_line=50, start_column=11,
end_line=59, end_column=27, end_line=50, end_column=27,
law_headings=["Prestations familiales", law_headings=["Prestations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1086,9 +1057,9 @@ def prestations_familiales(prestations_familiales_in:PrestationsFamilialesIn):
return False return False
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=58, start_line=49,
start_column=12, start_column=12,
end_line=58, end_line=49,
end_column=31, end_column=31,
law_headings=["Prestations familiales", law_headings=["Prestations familiales",
"Champs d'applications", "Champs d'applications",
@ -1096,8 +1067,8 @@ def prestations_familiales(prestations_familiales_in:PrestationsFamilialesIn):
except EmptyError: except EmptyError:
temp_conditions_hors_age = dead_value temp_conditions_hors_age = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=58, start_column=12, start_line=49, start_column=12,
end_line=58, end_column=31, end_line=49, end_column=31,
law_headings=["Prestations familiales", law_headings=["Prestations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1162,9 +1133,9 @@ def prestations_familiales(prestations_familiales_in:PrestationsFamilialesIn):
return False return False
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=57, start_line=48,
start_column=12, start_column=12,
end_line=57, end_line=48,
end_column=24, end_column=24,
law_headings=["Prestations familiales", law_headings=["Prestations familiales",
"Champs d'applications", "Champs d'applications",
@ -1172,8 +1143,8 @@ def prestations_familiales(prestations_familiales_in:PrestationsFamilialesIn):
except EmptyError: except EmptyError:
temp_droit_ouvert = dead_value temp_droit_ouvert = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=57, start_column=12, start_line=48, start_column=12,
end_line=57, end_column=24, end_line=48, end_column=24,
law_headings=["Prestations familiales", law_headings=["Prestations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1310,8 +1281,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
else: else:
raise EmptyError raise EmptyError
return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=97, start_column=11, start_line=87, start_column=11,
end_line=97, end_column=26, end_line=87, end_column=26,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_prise_en_compte_9, "Prologue"]), [temp_prise_en_compte_9,
@ -1321,9 +1292,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
temp_prise_en_compte_1) temp_prise_en_compte_1)
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=97, start_line=87,
start_column=11, start_column=11,
end_line=97, end_line=87,
end_column=26, end_column=26,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
@ -1331,8 +1302,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_prise_en_compte = dead_value temp_prise_en_compte = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=97, start_column=11, start_line=87, start_column=11,
end_line=97, end_column=26, end_line=87, end_column=26,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1458,8 +1429,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
else: else:
raise EmptyError raise EmptyError
return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=98, start_column=11, start_line=88, start_column=12,
end_line=98, end_column=20, end_line=88, end_column=21,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_versement_8, "Prologue"]), [temp_versement_8,
@ -1467,40 +1438,29 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
temp_versement_1) temp_versement_1)
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=98, start_line=88,
start_column=11, start_column=12,
end_line=98, end_line=88,
end_column=20, end_column=21,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
except EmptyError: except EmptyError:
temp_versement = dead_value temp_versement = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=98, start_column=11, start_line=88, start_column=12,
end_line=98, end_column=20, end_line=88, end_column=21,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
versement = temp_versement versement = temp_versement
try:
temp_nombre_enfants_l521_1 = integer_of_string("3")
except EmptyError:
temp_nombre_enfants_l521_1 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=151, start_column=11,
end_line=151, end_column=32,
law_headings=["Allocations familiales",
"Champs d'applications",
"Prologue"]))
nombre_enfants_l521_1 = temp_nombre_enfants_l521_1
try: try:
temp_nombre_enfants_alinea_2_l521_3 = integer_of_string("3") temp_nombre_enfants_alinea_2_l521_3 = integer_of_string("3")
except EmptyError: except EmptyError:
temp_nombre_enfants_alinea_2_l521_3 = dead_value temp_nombre_enfants_alinea_2_l521_3 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=154, start_column=11, start_line=143, start_column=11,
end_line=154, end_column=41, end_line=143, end_column=41,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1512,8 +1472,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_bmaf_dot_date_courante = dead_value temp_bmaf_dot_date_courante = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=167, start_column=14, start_line=154, start_column=14,
end_line=167, end_column=32, end_line=154, end_column=32,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1525,37 +1485,24 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_prestations_familiales_dot_date_courante = dead_value temp_prestations_familiales_dot_date_courante = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=163, start_column=14, start_line=150, start_column=14,
end_line=163, end_column=50, end_line=150, end_column=50,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
prestations_familiales_dot_date_courante = temp_prestations_familiales_dot_date_courante prestations_familiales_dot_date_courante = temp_prestations_familiales_dot_date_courante
try:
temp_prestations_familiales_dot_prestation_courante = ElementPrestationsFamiliales(ElementPrestationsFamiliales_Code.AllocationsFamiliales,
Unit())
except EmptyError:
temp_prestations_familiales_dot_prestation_courante = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=161, start_column=14,
end_line=161, end_column=56,
law_headings=["Allocations familiales",
"Champs d'applications",
"Prologue"]))
prestations_familiales_dot_prestation_courante = temp_prestations_familiales_dot_prestation_courante
try: try:
temp_prestations_familiales_dot_residence = residence_2 temp_prestations_familiales_dot_residence = residence_2
except EmptyError: except EmptyError:
temp_prestations_familiales_dot_residence = dead_value temp_prestations_familiales_dot_residence = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=165, start_column=14, start_line=152, start_column=14,
end_line=165, end_column=46, end_line=152, end_column=46,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
prestations_familiales_dot_residence = temp_prestations_familiales_dot_residence prestations_familiales_dot_residence = temp_prestations_familiales_dot_residence
result_3 = prestations_familiales(PrestationsFamilialesIn(date_courante_in = prestations_familiales_dot_date_courante, result_3 = prestations_familiales(PrestationsFamilialesIn(date_courante_in = prestations_familiales_dot_date_courante,
prestation_courante_in = prestations_familiales_dot_prestation_courante,
residence_in = prestations_familiales_dot_residence)) residence_in = prestations_familiales_dot_residence))
prestations_familiales_dot_droit_ouvert = result_3.droit_ouvert prestations_familiales_dot_droit_ouvert = result_3.droit_ouvert
prestations_familiales_dot_conditions_hors_age = result_3.conditions_hors_age prestations_familiales_dot_conditions_hors_age = result_3.conditions_hors_age
@ -1587,9 +1534,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
return duration_of_numbers(14,0,0) return duration_of_numbers(14,0,0)
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=152, start_line=141,
start_column=11, start_column=11,
end_line=152, end_line=141,
end_column=38, end_column=38,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
@ -1597,8 +1544,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_age_minimum_alinea_1_l521_3_1 = dead_value temp_age_minimum_alinea_1_l521_3_1 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=152, start_column=11, start_line=141, start_column=11,
end_line=152, end_column=38, end_line=141, end_column=38,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1611,8 +1558,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_enfants_a_charge_droit_ouvert_prestation_familiale_1 = dead_value temp_enfants_a_charge_droit_ouvert_prestation_familiale_1 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=95, start_column=11, start_line=85, start_column=11,
end_line=95, end_column=61, end_line=85, end_column=61,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1623,9 +1570,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
return (enfant_le_plus_age_dot_le_plus_age == enfant_6) return (enfant_le_plus_age_dot_le_plus_age == enfant_6)
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=155, start_line=144,
start_column=11, start_column=11,
end_line=155, end_line=144,
end_column=33, end_column=33,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
@ -1633,8 +1580,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_est_enfant_le_plus_age = dead_value temp_est_enfant_le_plus_age = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=155, start_column=11, start_line=144, start_column=11,
end_line=155, end_column=33, end_line=144, end_column=33,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1682,9 +1629,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
else: else:
raise EmptyError raise EmptyError
temp_plafond__i_i_d521_3_6 = handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", temp_plafond__i_i_d521_3_6 = handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=158, start_line=147,
start_column=11, start_column=11,
end_line=158, end_column=28, end_line=147, end_column=28,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_plafond__i_i_d521_3_5, "Prologue"]), [temp_plafond__i_i_d521_3_5,
@ -1700,8 +1647,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_plafond__i_i_d521_3_6 = dead_value temp_plafond__i_i_d521_3_6 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=158, start_column=11, start_line=147, start_column=11,
end_line=158, end_column=28, end_line=147, end_column=28,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1749,9 +1696,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
else: else:
raise EmptyError raise EmptyError
temp_plafond__i_d521_3_6 = handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", temp_plafond__i_d521_3_6 = handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=157, start_line=146,
start_column=11, start_column=11,
end_line=157, end_column=27, end_line=146, end_column=27,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_plafond__i_d521_3_5, "Prologue"]), [temp_plafond__i_d521_3_5,
@ -1767,8 +1714,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_plafond__i_d521_3_6 = dead_value temp_plafond__i_d521_3_6 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=157, start_column=11, start_line=146, start_column=11,
end_line=157, end_column=27, end_line=146, end_column=27,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1790,8 +1737,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_droit_ouvert_complement = dead_value temp_droit_ouvert_complement = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=137, start_column=11, start_line=127, start_column=11,
end_line=137, end_column=34, end_line=127, end_column=34,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1824,9 +1771,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
return False return False
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=120, start_line=110,
start_column=11, start_column=11,
end_line=120, end_line=110,
end_column=35, end_column=35,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
@ -1834,8 +1781,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_droit_ouvert_forfaitaire = dead_value temp_droit_ouvert_forfaitaire = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=120, start_column=11, start_line=110, start_column=11,
end_line=120, end_column=35, end_line=110, end_column=35,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1852,8 +1799,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_initial_base_quatrieme_enfant_et_plus_mayotte = dead_value temp_montant_initial_base_quatrieme_enfant_et_plus_mayotte = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=117, start_column=11, start_line=107, start_column=11,
end_line=117, end_column=64, end_line=107, end_column=64,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -1996,7 +1943,7 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
raise EmptyError raise EmptyError
temp_montant_initial_base_troisieme_enfant_mayotte_12 = handle_default( temp_montant_initial_base_troisieme_enfant_mayotte_12 = handle_default(
SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=116, start_column=11, end_line=116, end_column=56, start_line=106, start_column=11, end_line=106, end_column=56,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_montant_initial_base_troisieme_enfant_mayotte_11, "Prologue"]), [temp_montant_initial_base_troisieme_enfant_mayotte_11,
@ -2021,8 +1968,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_initial_base_troisieme_enfant_mayotte_12 = dead_value temp_montant_initial_base_troisieme_enfant_mayotte_12 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=116, start_column=11, start_line=106, start_column=11,
end_line=116, end_column=56, end_line=106, end_column=56,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2032,8 +1979,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_nombre_total_enfants = dead_value temp_nombre_total_enfants = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=110, start_column=11, start_line=100, start_column=11,
end_line=110, end_column=31, end_line=100, end_column=31,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2059,8 +2006,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_nombre_moyen_enfants_2 = dead_value temp_nombre_moyen_enfants_2 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=109, start_column=11, start_line=99, start_column=11,
end_line=109, end_column=31, end_line=99, end_column=31,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2235,8 +2182,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
else: else:
raise EmptyError raise EmptyError
return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=105, start_column=11, start_line=95, start_column=11,
end_line=105, end_column=46, end_line=95, end_column=46,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_montant_initial_base_premier_enfant_16, "Prologue"]), [temp_montant_initial_base_premier_enfant_16,
@ -2265,7 +2212,7 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
raise EmptyError raise EmptyError
temp_montant_initial_base_premier_enfant_17 = handle_default( temp_montant_initial_base_premier_enfant_17 = handle_default(
SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=105, start_column=11, end_line=105, end_column=46, start_line=95, start_column=11, end_line=95, end_column=46,
law_headings=["Allocations familiales", "Champs d'applications", law_headings=["Allocations familiales", "Champs d'applications",
"Prologue"]), [temp_montant_initial_base_premier_enfant_3, "Prologue"]), [temp_montant_initial_base_premier_enfant_3,
temp_montant_initial_base_premier_enfant_2], temp_montant_initial_base_premier_enfant_2],
@ -2274,8 +2221,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_initial_base_premier_enfant_17 = dead_value temp_montant_initial_base_premier_enfant_17 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=105, start_column=11, start_line=95, start_column=11,
end_line=105, end_column=46, end_line=95, end_column=46,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2312,8 +2259,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_droit_ouvert_base = dead_value temp_droit_ouvert_base = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=103, start_column=11, start_line=93, start_column=11,
end_line=103, end_column=28, end_line=93, end_column=28,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2343,9 +2290,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
return False return False
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=126, start_line=116,
start_column=11, start_column=11,
end_line=126, end_line=116,
end_column=34, end_column=34,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
@ -2353,8 +2300,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_droit_ouvert_majoration = dead_value temp_droit_ouvert_majoration = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=126, start_column=11, start_line=116, start_column=11,
end_line=126, end_column=34, end_line=116, end_column=34,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2392,8 +2339,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
else: else:
raise EmptyError raise EmptyError
return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=139, start_column=11, start_line=129, start_column=11,
end_line=139, end_column=31, end_line=129, end_column=31,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_complement_degressif_4, "Prologue"]), [temp_complement_degressif_4,
@ -2404,9 +2351,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
return money_of_cents_string("0") return money_of_cents_string("0")
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=139, start_line=129,
start_column=11, start_column=11,
end_line=139, end_line=129,
end_column=31, end_column=31,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
@ -2414,8 +2361,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_complement_degressif = dead_value temp_complement_degressif = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=139, start_column=11, start_line=129, start_column=11,
end_line=139, end_column=31, end_line=129, end_column=31,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2446,7 +2393,7 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
raise EmptyError raise EmptyError
temp_montant_verse_forfaitaire_par_enfant_5 = handle_default( temp_montant_verse_forfaitaire_par_enfant_5 = handle_default(
SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=122, start_column=11, end_line=122, end_column=47, start_line=112, start_column=11, end_line=112, end_column=47,
law_headings=["Allocations familiales", "Champs d'applications", law_headings=["Allocations familiales", "Champs d'applications",
"Prologue"]), [temp_montant_verse_forfaitaire_par_enfant_4, "Prologue"]), [temp_montant_verse_forfaitaire_par_enfant_4,
temp_montant_verse_forfaitaire_par_enfant_3, temp_montant_verse_forfaitaire_par_enfant_3,
@ -2456,8 +2403,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_verse_forfaitaire_par_enfant_5 = dead_value temp_montant_verse_forfaitaire_par_enfant_5 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=122, start_column=11, start_line=112, start_column=11,
end_line=122, end_column=47, end_line=112, end_column=47,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2507,7 +2454,7 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
raise EmptyError raise EmptyError
temp_montant_initial_base_troisieme_enfant_et_plus_5 = handle_default( temp_montant_initial_base_troisieme_enfant_et_plus_5 = handle_default(
SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=107, start_column=11, end_line=107, end_column=56, start_line=97, start_column=11, end_line=97, end_column=56,
law_headings=["Allocations familiales", "Champs d'applications", law_headings=["Allocations familiales", "Champs d'applications",
"Prologue"]), [temp_montant_initial_base_troisieme_enfant_et_plus_4, "Prologue"]), [temp_montant_initial_base_troisieme_enfant_et_plus_4,
temp_montant_initial_base_troisieme_enfant_et_plus_3, temp_montant_initial_base_troisieme_enfant_et_plus_3,
@ -2517,8 +2464,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_initial_base_troisieme_enfant_et_plus_5 = dead_value temp_montant_initial_base_troisieme_enfant_et_plus_5 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=107, start_column=11, start_line=97, start_column=11,
end_line=107, end_column=56, end_line=97, end_column=56,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2672,8 +2619,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
raise EmptyError raise EmptyError
temp_montant_initial_base_deuxieme_enfant_12 = handle_default( temp_montant_initial_base_deuxieme_enfant_12 = handle_default(
SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=106, start_column=11, start_line=96, start_column=11,
end_line=106, end_column=47, end_line=96, end_column=47,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_montant_initial_base_deuxieme_enfant_11, "Prologue"]), [temp_montant_initial_base_deuxieme_enfant_11,
@ -2738,7 +2685,7 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
raise EmptyError raise EmptyError
temp_montant_initial_base_deuxieme_enfant_12 = handle_default( temp_montant_initial_base_deuxieme_enfant_12 = handle_default(
SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=106, start_column=11, end_line=106, end_column=47, start_line=96, start_column=11, end_line=96, end_column=47,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_montant_initial_base_deuxieme_enfant_17, "Prologue"]), [temp_montant_initial_base_deuxieme_enfant_17,
@ -2749,8 +2696,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_initial_base_deuxieme_enfant_12 = dead_value temp_montant_initial_base_deuxieme_enfant_12 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=106, start_column=11, start_line=96, start_column=11,
end_line=106, end_column=47, end_line=96, end_column=47,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2765,8 +2712,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_rapport_enfants_total_moyen = dead_value temp_rapport_enfants_total_moyen = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=108, start_column=11, start_line=98, start_column=11,
end_line=108, end_column=38, end_line=98, end_column=38,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2803,8 +2750,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
else: else:
raise EmptyError raise EmptyError
return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=128, start_column=11, start_line=118, start_column=11,
end_line=128, end_column=47, end_line=118, end_column=47,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_montant_initial_metropole_majoration_6, "Prologue"]), [temp_montant_initial_metropole_majoration_6,
@ -2815,9 +2762,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
temp_montant_initial_metropole_majoration_1) temp_montant_initial_metropole_majoration_1)
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=128, start_line=118,
start_column=11, start_column=11,
end_line=128, end_line=118,
end_column=47, end_column=47,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
@ -2825,8 +2772,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_initial_metropole_majoration = dead_value temp_montant_initial_metropole_majoration = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=128, start_column=11, start_line=118, start_column=11,
end_line=128, end_column=47, end_line=118, end_column=47,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2840,8 +2787,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_verse_forfaitaire_1 = dead_value temp_montant_verse_forfaitaire_1 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=123, start_column=11, start_line=113, start_column=11,
end_line=123, end_column=36, end_line=113, end_column=36,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2869,9 +2816,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
else: else:
raise EmptyError raise EmptyError
temp_montant_initial_base_4 = handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", temp_montant_initial_base_4 = handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=104, start_line=94,
start_column=11, start_column=11,
end_line=104, end_column=31, end_line=94, end_column=31,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_montant_initial_base_3, "Prologue"]), [temp_montant_initial_base_3,
@ -2884,8 +2831,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_initial_base_4 = dead_value temp_montant_initial_base_4 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=104, start_column=11, start_line=94, start_column=11,
end_line=104, end_column=31, end_line=94, end_column=31,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2926,8 +2873,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
else: else:
raise EmptyError raise EmptyError
return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", return handle_default(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=130, start_column=11, start_line=120, start_column=11,
end_line=130, end_column=37, end_line=120, end_column=37,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_montant_initial_majoration_4, "Prologue"]), [temp_montant_initial_majoration_4,
@ -2938,9 +2885,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
return montant_initial_metropole_majoration(enfant_12) return montant_initial_metropole_majoration(enfant_12)
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=130, start_line=120,
start_column=11, start_column=11,
end_line=130, end_line=120,
end_column=37, end_column=37,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
@ -2948,8 +2895,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_initial_majoration = dead_value temp_montant_initial_majoration = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=130, start_column=11, start_line=120, start_column=11,
end_line=130, end_column=37, end_line=120, end_column=37,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -2984,7 +2931,7 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
raise EmptyError raise EmptyError
temp_montant_verse_complement_pour_forfaitaire_4 = handle_default( temp_montant_verse_complement_pour_forfaitaire_4 = handle_default(
SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=142, start_column=11, end_line=142, end_column=52, start_line=132, start_column=11, end_line=132, end_column=52,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"]), [temp_montant_verse_complement_pour_forfaitaire_3, "Prologue"]), [temp_montant_verse_complement_pour_forfaitaire_3,
@ -2996,8 +2943,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_verse_complement_pour_forfaitaire_4 = dead_value temp_montant_verse_complement_pour_forfaitaire_4 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=142, start_column=11, start_line=132, start_column=11,
end_line=142, end_column=52, end_line=132, end_column=52,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -3008,8 +2955,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_avec_garde_alternee_base = dead_value temp_montant_avec_garde_alternee_base = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=111, start_column=11, start_line=101, start_column=11,
end_line=111, end_column=43, end_line=101, end_column=43,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -3031,9 +2978,9 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
temp_montant_avec_garde_alternee_majoration_1) temp_montant_avec_garde_alternee_majoration_1)
except EmptyError: except EmptyError:
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=132, start_line=122,
start_column=11, start_column=11,
end_line=132, end_line=122,
end_column=49, end_column=49,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
@ -3041,8 +2988,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_avec_garde_alternee_majoration = dead_value temp_montant_avec_garde_alternee_majoration = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=132, start_column=11, start_line=122, start_column=11,
end_line=132, end_column=49, end_line=122, end_column=49,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -3055,8 +3002,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_verse_base = dead_value temp_montant_verse_base = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=112, start_column=11, start_line=102, start_column=11,
end_line=112, end_column=29, end_line=102, end_column=29,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -3076,8 +3023,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_verse_majoration_2 = dead_value temp_montant_verse_majoration_2 = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=134, start_column=11, start_line=124, start_column=11,
end_line=134, end_column=35, end_line=124, end_column=35,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -3088,8 +3035,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_base_complement_pour_base_et_majoration = dead_value temp_montant_base_complement_pour_base_et_majoration = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=138, start_column=11, start_line=128, start_column=11,
end_line=138, end_column=58, end_line=128, end_column=58,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -3103,8 +3050,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_verse_complement_pour_base_et_majoration = dead_value temp_montant_verse_complement_pour_base_et_majoration = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=141, start_column=11, start_line=131, start_column=11,
end_line=141, end_column=59, end_line=131, end_column=59,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -3120,8 +3067,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
except EmptyError: except EmptyError:
temp_montant_verse = dead_value temp_montant_verse = dead_value
raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr", raise NoValueProvided(SourcePosition(filename="examples/allocations_familiales/prologue.catala_fr",
start_line=100, start_column=12, start_line=90, start_column=12,
end_line=100, end_column=25, end_line=90, end_column=25,
law_headings=["Allocations familiales", law_headings=["Allocations familiales",
"Champs d'applications", "Champs d'applications",
"Prologue"])) "Prologue"]))
@ -3151,7 +3098,8 @@ def allocations_familiales(allocations_familiales_in:AllocationsFamilialesIn):
"Livre 5 : Prestations familiales et prestations assimilées", "Livre 5 : Prestations familiales et prestations assimilées",
"Partie législative", "Partie législative",
"Code de la sécurité sociale"])) "Code de la sécurité sociale"]))
return AllocationsFamiliales(montant_verse = montant_verse) return AllocationsFamiliales(versement = versement,
montant_verse = montant_verse)
def interface_allocations_familiales(interface_allocations_familiales_in:InterfaceAllocationsFamilialesIn): def interface_allocations_familiales(interface_allocations_familiales_in:InterfaceAllocationsFamilialesIn):
i_date_courante = interface_allocations_familiales_in.i_date_courante_in i_date_courante = interface_allocations_familiales_in.i_date_courante_in
@ -3294,6 +3242,7 @@ def interface_allocations_familiales(interface_allocations_familiales_in:Interfa
date_courante_in = allocations_familiales_dot_date_courante, date_courante_in = allocations_familiales_dot_date_courante,
enfants_a_charge_in = allocations_familiales_dot_enfants_a_charge, enfants_a_charge_in = allocations_familiales_dot_enfants_a_charge,
avait_enfant_a_charge_avant_1er_janvier_2012_in = allocations_familiales_dot_avait_enfant_a_charge_avant_1er_janvier_2012)) avait_enfant_a_charge_avant_1er_janvier_2012_in = allocations_familiales_dot_avait_enfant_a_charge_avant_1er_janvier_2012))
allocations_familiales_dot_versement = result_5.versement
allocations_familiales_dot_montant_verse = result_5.montant_verse allocations_familiales_dot_montant_verse = result_5.montant_verse
try: try:
temp_i_montant_verse = allocations_familiales_dot_montant_verse temp_i_montant_verse = allocations_familiales_dot_montant_verse

View File

@ -1,7 +1,7 @@
from abc import ABC from abc import ABC
from catala.runtime import * from catala.runtime import *
from .allocations_familiales import Collectivite, Collectivite_Code, InterfaceAllocationsFamilialesIn, PriseEnCharge, interface_allocations_familiales, PriseEnCharge_Code, EnfantEntree, InterfaceAllocationsFamilialesIn from .allocations_familiales import Collectivite, Collectivite_Code, InterfaceAllocationsFamilialesIn, PriseEnCharge, interface_allocations_familiales, PriseEnCharge_Code, EnfantEntree, InterfaceAllocationsFamilialesIn
from .aides_logement import AutrePersonneACharge, CategorieEquivalenceLoyerAllocationLogementFoyer, CategorieEquivalenceLoyerAllocationLogementFoyer_Code, ChangementLogementD8424, ChangementLogementD8424_Code, ConventionANHA, ConventionBailleurSocial, EnfantACharge, InfosChangementLogementD8424, Location, Logement, LogementFoyer, LoueOuSousLoueADesTiers, LoueOuSousLoueADesTiers_Code, Menage, ModeOccupation, ModeOccupation_Code, Nationalite, Nationalite_Code, NeufOuAncien, NeufOuAncien_Code, ParentOuAutre, ParentOuAutre_Code, Parente, Parente_Code, Patrimoine, PersonneACharge, PersonneSousLocation, PrestationRecue, PrestationRecue_Code, Pret, Proprietaire, SituationFamiliale, SituationFamiliale_Code, SituationGardeAlternee_Code, SituationObligationScolaire_Code, TitulairePret, TitulairePret_Code, TypeBailleur, TypeBailleur_Code, TypeLogementFoyer, TypeLogementFoyer_Code, TypePret, TypePret_Code, TypeTravauxLogementD83215, TypeTravauxLogementD83215_Code, TypeTravauxLogementR8425, TypeTravauxLogementR8425_Code, ZoneDHabitation, ZoneDHabitation_Code, calculette_aides_au_logement_garde_alternee, CalculetteAidesAuLogementGardeAlterneeIn, ressources_aides_personnelle_logement, Demandeur, PersonneACharge_Code, SituationObligationScolaire, SituationGardeAlternee, AccordFinancementRepresentantEtatOutreMer_Code, AccordFinancementRepresentantEtatOutreMer from .aides_logement import AutrePersonneACharge, CategorieEquivalenceLoyerAllocationLogementFoyer, CategorieEquivalenceLoyerAllocationLogementFoyer_Code, ChangementLogementD8424, ChangementLogementD8424_Code, ConventionANHA, ConventionBailleurSocial, EnfantACharge, InfosChangementLogementD8424, Location, Logement, LogementFoyer, LoueOuSousLoueADesTiers, LoueOuSousLoueADesTiers_Code, Menage, ModeOccupation, ModeOccupation_Code, Nationalite, Nationalite_Code, NeufOuAncien, NeufOuAncien_Code, ParentOuAutre, ParentOuAutre_Code, Parente, Parente_Code, PersonneACharge, PersonneSousLocation, PrestationRecue, PrestationRecue_Code, Pret, Proprietaire, SituationFamiliale, SituationFamiliale_Code, SituationGardeAlternee_Code, SituationObligationScolaire_Code, TitulairePret, TitulairePret_Code, TypeBailleur, TypeBailleur_Code, TypeLogementFoyer, TypeLogementFoyer_Code, TypePret, TypePret_Code, TypeTravauxLogementD83215, TypeTravauxLogementD83215_Code, TypeTravauxLogementR8425, TypeTravauxLogementR8425_Code, ZoneDHabitation, ZoneDHabitation_Code, calculette_aides_au_logement_garde_alternee, CalculetteAidesAuLogementGardeAlterneeIn, Demandeur, PersonneACharge_Code, SituationObligationScolaire, SituationGardeAlternee, AccordFinancementRepresentantEtatOutreMer_Code, AccordFinancementRepresentantEtatOutreMer
from .aides_logement import Collectivite_Code as Collectivite_Code_APL from .aides_logement import Collectivite_Code as Collectivite_Code_APL
from .aides_logement import Collectivite as Collectivite_APL from .aides_logement import Collectivite as Collectivite_APL
@ -198,8 +198,6 @@ def aides_logement(
ressources_menage_prises_en_compte: int, ressources_menage_prises_en_compte: int,
date_naissance_demandeur: datetime.date, date_naissance_demandeur: datetime.date,
nationalite_demandeur: Nationalite, nationalite_demandeur: Nationalite,
patrimoine_produisant_revenu: int,
patrimoine_ne_produisant_pas_revenu: int,
personne_hebergee_centre_soins: bool, personne_hebergee_centre_soins: bool,
personne_rattache_foyer_fiscal_parent_ifi: bool, personne_rattache_foyer_fiscal_parent_ifi: bool,
nombre_autres_occupants_logement_hors_menage: int, nombre_autres_occupants_logement_hors_menage: int,
@ -209,7 +207,6 @@ def aides_logement(
date_mariage: Optional[datetime.date], date_mariage: Optional[datetime.date],
prestations_recues: List[PrestationRecue_Code], prestations_recues: List[PrestationRecue_Code],
residence_principale: bool, residence_principale: bool,
logement_est_maison_de_retraite: bool,
logement_est_decent: bool, logement_est_decent: bool,
surface_logement_m_carres: int, surface_logement_m_carres: int,
zone: ZoneDHabitation_Code, zone: ZoneDHabitation_Code,
@ -230,7 +227,6 @@ def aides_logement(
code=presta, value=Unit()) for presta in prestations_recues], code=presta, value=Unit()) for presta in prestations_recues],
logement=Logement( logement=Logement(
residence_principale=residence_principale, residence_principale=residence_principale,
est_ehpad_ou_maison_autonomie_l313_12_asf=logement_est_maison_de_retraite,
mode_occupation=ModeOccupation( mode_occupation=ModeOccupation(
code=mode_occupation, code=mode_occupation,
value=(Location( value=(Location(
@ -382,12 +378,6 @@ def aides_logement(
nationalite=nationalite_demandeur, nationalite=nationalite_demandeur,
est_non_salarie_agricole_l781_8_l_781_46_code_rural=est_non_salarie_agricole_l781_8_l_781_46_code_rural, est_non_salarie_agricole_l781_8_l_781_46_code_rural=est_non_salarie_agricole_l781_8_l_781_46_code_rural,
magistrat_fonctionnaire_centre_interets_materiels_familiaux_hors_mayotte=magistrat_fonctionnaire_centre_interets_materiels_familiaux_hors_mayotte, magistrat_fonctionnaire_centre_interets_materiels_familiaux_hors_mayotte=magistrat_fonctionnaire_centre_interets_materiels_familiaux_hors_mayotte,
patrimoine=Patrimoine(
produisant_revenu_periode_r822_3_3_r822_4=money_of_units_int(
patrimoine_produisant_revenu),
ne_produisant_pas_revenu_periode_r822_3_3_r822_4=money_of_units_int(
patrimoine_ne_produisant_pas_revenu)
),
personne_hebergee_centre_soin_l_L162_22_3_securite_sociale=personne_hebergee_centre_soins, personne_hebergee_centre_soin_l_L162_22_3_securite_sociale=personne_hebergee_centre_soins,
), ),
date_courante_in=date_of_datetime(date_courante), date_courante_in=date_of_datetime(date_courante),