-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from openfisca/montpellier-mutuelle-communal
Mise à jour des communes associées à la mutuelle communale de la métropole de Montpellier
- Loading branch information
Showing
5 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
openfisca_france_local/communes/montpellier/eligibilite.py
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
openfisca_france_local/communes/montpellier/eligibilite_metropole_mutuelle.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from openfisca_france.model.base import Menage, MONTH, Variable | ||
|
||
class montpellier_mutuelle_eligibilite_residence(Variable): | ||
value_type = bool | ||
entity = Menage | ||
definition_period = MONTH | ||
label = "Éligibilité résidentielle d'un ménage à la mutuelle communale de la métropole de Montpellier" | ||
reference = "https://encommun.montpellier.fr/articles/2024-12-19-lagence-de-la-mutuelle-communale-de-montpellier-est-ouverte" | ||
|
||
def formula(menage, period): | ||
return sum(menage('depcom', period) == code for code in [ | ||
b'34172', # Montpellier | ||
b'34077', # Clapiers | ||
b'34090', # Le Crès | ||
b'34179', # Murviel-lès-Montpellier | ||
b'34256', # Saint-Geniès-des-Mourgues | ||
b'34307' # Sussargues | ||
]) > 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
setup( | ||
name='OpenFisca-France-Local', | ||
version='6.17.2', | ||
version='6.17.3', | ||
author='OpenFisca Team', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
|